Hi, guys. Help me with it. Already I broke the head) Thanks.
Hi, guys. Help me with it. Already I broke the head) Thanks.
See if this works
if UnitExists(focus)
and UnitIsPlayer(focus)
and IsSpellInRange(57934;focus) == 1
then
CastSpellByID(57934,focus)
return true
if UnitExists("focus")
and UnitIsPlayer("focus")
and UnitIsDeadOrGhost("focus") == nil
and IsSpellInRange(57934, "focus") == 1
then
CastSpellByID(57934, "focus")
end
Last edited by bynike; 07-31-2016 at 09:06 PM.
Works fine. Thanks.