Wizards of Lua

The Art of Spell Crafting


SpellBreakEvent

The SpellBreakEvent class informs about the termination of a Spell.

A spell can intercept its own break event and do some clean-up before it is finally terminated.

Example

Events.on('SpellBreakEvent'):call(function(event)
  if event.spell == spell then
    -- do some clean-up here
  end
end)

The SpellBreakEvent class is a subtype of the Event class and inherits all its properties and functions.

Here is an overview of the SpellBreakEvent properties:

Property Type read / write
spell Spell r

Properties

Below you find short descriptions about each of the properties and some examples about how to use them in your spells.


spell : Spell

The Spell that is being terminated.