GetAttemptedSpellTarget()

Determines the creature a spell was attempted to be cast at.

object GetAttemptedSpellTarget();

Description

Return 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.



Version

1.22

See Also

functions: ActionCastSpellAtObject
categories: Combat Information Functions | Get Data from Creature Functions | Spells Functions | Targeting Functions


 author: Jody Fletcher