Lua CastSpell
Description
Remember that the spell should be instant.
Syntax
Unit:CastSpell(spell_id_here)
Usage/Example
function (Unit, event)
if Unit:GetHealthPct() < 2 then
Unit:CastSpell(14561) -- example
end
end
Remember that the spell should be instant.
Unit:CastSpell(spell_id_here)
function (Unit, event)
if Unit:GetHealthPct() < 2 then
Unit:CastSpell(14561) -- example
end
end