Originally Posted by
trulygangster
Itll prob be easier if you just can point me in the right direction Btw mangle is the only thing in my rotation this is why im confused..Here take a look at at what im trying to accomplish
Code:
local CP = GetComboPoints("player", "target")
local hasCatMangle, _, _, _, _, _, CatMangleTimer = UnitDebuffID("target", 33876, "PLAYER")
if CP == 5 then
return false
else
return true
end
elseif hasCatMangle ~= nil then
-- Check the timer
if CatMangleTimer - GetTime() < 1 then
return true
end
else
return true
end
hmm try
Code:
local CP = GetComboPoints("player", "target")
local hasCatMangle, _, _, _, _, _, CatMangleTimer = UnitDebuffID("target", 33876, "player")
if CP == 5 then
return false
else
return true
end
if hasCatMangle ~= nil or hasBearMangle ~= nil then
-- Check the timer
if CatMangleTimer - GetTime() < 1 then
return true
end
else
return true
end
looked just like faulty editing of the original code
if that doesn't work i'll pull up my druid and try it myself, in heroic dungeon atm
*edit*
all of those if hasBearMangle and stuff that you deleted were checks to see if another class had put up a debuff of the same type. If so then you wont go out of your way to reapply it. I think that one of the errors you were encountering is that it was trying to find out wtf "hasbearMangle" was. I could be wrong, but elseif, "PLAYER" and that seemed to be the only things that caught my eye as being out of place.