Retrieves the target of the caller's last spell.
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 occurred.
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.
author: Charles Feduke, editor: Lilac Soul, additional contributor(s): Glenn Berden