diff options
Diffstat (limited to 'src/server/game/Spells/SpellScript.h')
| -rw-r--r-- | src/server/game/Spells/SpellScript.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/server/game/Spells/SpellScript.h b/src/server/game/Spells/SpellScript.h index c33c2471a45..768a35c82f9 100644 --- a/src/server/game/Spells/SpellScript.h +++ b/src/server/game/Spells/SpellScript.h @@ -192,8 +192,19 @@ class SpellScript : public _SpellScript SpellEntry const * GetSpellInfo(); // methods useable after spell targets are set - // returns: destination of the spell if exists, otherwise NULL - WorldLocation * GetDest(); + // accessors to the "focus" targets of the spell + // note: do not confuse these with spell hit targets + // returns: WorldLocation which was selected as a spell destination or NULL + WorldLocation * GetTargetDest(); + + // returns: Unit which was selected as a spell target or NULL + Unit * GetTargetUnit(); + + // returns: GameObject which was selected as a spell target or NULL + GameObject * GetTargetGObj(); + + // returns: Item which was selected as a spell target or NULL + Item * GetTargetItem(); // methods useable only during spell hit on target phase: |
