Lua CastSpell

From ArcEmu-Wiki
Jump to: navigation, search

EXAMPLE

 function (Unit, event)
   if Unit:GetHealthPct() < 2 then
   Unit:CastSpell(14561) -- example
   end
 end

NORMAL LINE

Unit:CastSpell(SPELL ID HERE)

Remember that the spell should be instant.

Personal tools