Djinni Wiki

function GetAttemptedSpellTarget ()

Get the target at which the caller attempted to cast a spell. This value is set every time a spell is cast and is reset at the end of combat.

  • Returns OBJECT_INVALID if the caller is not a valid creature.
  • Return type: object
  • Include file: nwscriptdefn