All pastes #386416 Raw Edit

Stuff

public text v1 · immutable
·published 2007-03-08 16:19 UTC
rendered paste body
method 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"
	}