diff options
Diffstat (limited to 'src/server/game/Spells/SpellScript.h')
-rw-r--r-- | src/server/game/Spells/SpellScript.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/game/Spells/SpellScript.h b/src/server/game/Spells/SpellScript.h index 28d4e103a1d..5549eec2ca6 100644 --- a/src/server/game/Spells/SpellScript.h +++ b/src/server/game/Spells/SpellScript.h @@ -29,6 +29,7 @@ class Aura; class AuraApplication; class AuraEffect; class Creature; +class Corpse; class DamageInfo; class DispelInfo; class DynamicObject; @@ -499,6 +500,8 @@ class TC_GAME_API SpellScript : public _SpellScript Item* GetHitItem() const; // returns: target of current effect if it was GameObject otherwise NULL GameObject* GetHitGObj() const; + // returns: target of current effect if it was Corpse otherwise nullptr + Corpse* GetHitCorpse() const; // returns: destination of current effect WorldLocation* GetHitDest() const; // setter/getter for for damage done by spell to target of spell hit |