Originally Posted by
averykey
l
if Rip == nil then
return false
end
put it at the top so it will look at the code and notice rip is not on the target then return false.
Code:
local SavageRoar, _, _, _, _, _, SavageRoarEndTime = UnitBuffID("player", 62071)
local Rip, _, _, _, _, _, ripEndTime = UnitDebuffID("target", 1079, "PLAYER")
local playerCP = GetComboPoints("player", "target")
if Rip == nil then
return false
end
if SavageRoar then
local SavageRoarFinishTime = SavageRoarEndTime - GetTime()
if SavageRoarFinishTime < 2 then
return true
end
if Rip then
local ripFinishTime = ripEndTime - GetTime()
if playerCP == 5 and ripFinishTime < 12 then
if SavageRoarFinishTime < 6 and SavageRoarFinishTime < ripFinishTime then
return true
end
end
end
return false
else
if playerCP > 0 then
return true
end
end
Like this? And tyvm for your reply!