rendered paste bodymethod InitToon()
{
Event[UNIT_SPELLCAST_SUCCEEDED]:AttachAtom[${This.ObjectName}:healcheck]
}
method healcheck(string eventid , text, Who, SpellCast)
{
if ${Who.Equal[player]} && (${SpellCast.Equal[Regrowth]} || ${SpellCast.Equal[Healing Touch]})
{
This:Debug["Heal successfully cast"]
HealTime:Set[${LavishScript.RunningTime} + 500]
}
}
method Shutdown()
{
LavishSettings["Class"]:Export["etc/class.xml"]
Event[UI_ERROR_MESSAGE]:DetachAtom[${This.ObjectName}:ErrorMessage]
Event[TOON_GUI_VISIBLE]:Unregister
Event[UNIT_SPELLCAST_SUCCEEDED]:DetachAtom[${This.ObjectName}:healcheck]
ui -unload "class/${Me.Class}.xml"
}