diff options
author | treeston <treeston.mmoc@gmail.com> | 2016-05-12 18:46:12 +0200 |
---|---|---|
committer | treeston <treeston.mmoc@gmail.com> | 2016-05-12 18:46:12 +0200 |
commit | ab0abdbde5fb70a88aba4ec05291ec717444abe8 (patch) | |
tree | ba46c597fc58e21459bbe4ae9060023ad7fa0105 | |
parent | afbda0476700f272c734ecb5b31474dbf66477f7 (diff) |
Core/AI: Add DoCastSelf helper.
(I have no idea why I never bothered to do this before, really. It had crossed my mind a few times.)
-rw-r--r-- | src/server/game/AI/CoreAI/UnitAI.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/game/AI/CoreAI/UnitAI.h b/src/server/game/AI/CoreAI/UnitAI.h index 344ccc06249..714adca8f5b 100644 --- a/src/server/game/AI/CoreAI/UnitAI.h +++ b/src/server/game/AI/CoreAI/UnitAI.h @@ -242,6 +242,7 @@ class TC_GAME_API UnitAI void DoAddAuraToAllHostilePlayers(uint32 spellid); void DoCast(uint32 spellId); void DoCast(Unit* victim, uint32 spellId, bool triggered = false); + inline void DoCastSelf(uint32 spellId, bool triggered = false) { DoCast(me, spellId, triggered); } void DoCastToAllHostilePlayers(uint32 spellid, bool triggered = false); void DoCastVictim(uint32 spellId, bool triggered = false); void DoCastAOE(uint32 spellId, bool triggered = false); |