GetSpellTargetObject()

Retrieves the target of the caller's last spell.

object GetSpellTargetObject();

Description

Returns the target (as an object) of OBJECT_SELF's last spell cast. Returns OBJECT_INVALID when there is no former target, OBJECT_SELF is incapable of casting spells, or an error occured.



Remarks

This should only be used inside spell scripts. If you want to learn how to use the new spellhooking system, check the advanced scripting tutorials in the Lexicon's Lyceum.


Version

1.61

See Also

categories: Spells Functions


 author: Charles Feduke, editor: Lilac Soul, additional contributor(s): Glenn Berden