Originally Posted by
Albedo
The duration check still doesn't work, as far as i can tell.
Replace
Code:
/run local _,_,_,c,_,d,_,p,_=UnitDebuff("Target","Lacerate"); if ((not (c==5 )) and (p=="player")) or ((c==5) and (p=="player") and d<=2) ( then CastSpellByName("Lacerate") end
With (untested)
Code:
/run local n,_,_,s,_,_,e,c=UnitDebuff("Target","Lacerate"); if (not n) or (c ~= "player") or (s < 5) or (e-GetTime()<2) then CastSpellByName("Lacerate") end
Will cast Lacerate if the target does not have the Lacerate debuff, or if that debuff was not cast by the player or if that debuff does not have 5 stacks, or if it will expire in under 2 seconds.