diff options
| author | Ovah <dreadkiller@gmx.de> | 2020-07-09 20:03:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-09 20:03:40 +0200 |
| commit | 94a4404e7e0667eab5d79c01444855966c41ad56 (patch) | |
| tree | 0b67cef030bc724b848160dff3c2c35803270fa4 /src/server/game/Spells/SpellScript.h | |
| parent | f99a79cb4301f1d76d95b9c953918216947a2b94 (diff) | |
Core/Spells: Expose corpseTarget to spell scripts with SpellScript::GetHitCorpse() (#24981)
Closes #24945
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 e4356e8835e..942269aa0cf 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; @@ -453,6 +454,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 |
