PHP Code:
local SPELL = 119582
local Shuffle,_,_,_,_,_,ShuffleTime = UnitBuffID("player", 115307)
local HStagger = UnitDebuffID("player", 124273)
local MStagger = UnitDebuffID("player", 124274)
local LStagger = UnitDebuffID("player", 124275)
if PQR_SpellAvailable(SPELL)and PlayerCombat then
if HStagger then
CastSpellByName(GetSpellInfo(SPELL))
return true
elseif MStagger and ShuffleTime - GetTime() > 2 then
CastSpellByName(GetSpellInfo(SPELL))
return true
elseif LStagger and ShuffleTime - GetTime() > 8 then
CastSpellByName(GetSpellInfo(SPELL))
return true
end
end
Why it does not work?
If only HStagger on me it works perfectly but if MStagger or LStagger not working until manually use Blackout Kick