diff options
author | treeston <treeston.mmoc@gmail.com> | 2016-05-12 18:46:12 +0200 |
---|---|---|
committer | joschiwald <joschiwald.trinity@gmail.com> | 2017-01-08 03:06:39 +0100 |
commit | 233c3a38456e5b4d2c02ca032d3a35201d50d9bf (patch) | |
tree | 8ce876ce5a0cf5e72c559c51fdb4f4159ed14fb4 /src | |
parent | 416afdfec58b3fdc5ddb17a981c4661eff3108b9 (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.)
(cherry picked from commit ab0abdbde5fb70a88aba4ec05291ec717444abe8)
This discussion is more effort than it takes to change it.
(cherry picked from commit b52a6b857097ff0e540fa0b560df2cc61546603d)
Diffstat (limited to 'src')
-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 e2e69b05cfc..31881cf3b7e 100644 --- a/src/server/game/AI/CoreAI/UnitAI.h +++ b/src/server/game/AI/CoreAI/UnitAI.h @@ -241,6 +241,7 @@ class TC_GAME_API UnitAI void DoCast(uint32 spellId); void DoCast(Unit* victim, uint32 spellId, bool triggered = false); + void DoCastSelf(uint32 spellId, bool triggered = false) { DoCast(me, spellId, triggered); } void DoCastVictim(uint32 spellId, bool triggered = false); void DoCastAOE(uint32 spellId, bool triggered = false); |