From ab0abdbde5fb70a88aba4ec05291ec717444abe8 Mon Sep 17 00:00:00 2001 From: treeston Date: Thu, 12 May 2016 18:46:12 +0200 Subject: 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.) --- src/server/game/AI/CoreAI/UnitAI.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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); -- cgit v1.2.3