Permalink
Browse files

Adapt to TC changes

  • Loading branch information...
1 parent 5a18a49 commit a316e1cdbee12d175087228b7fbc6fa6706103d7 @Rochet2 Rochet2 committed Jan 14, 2016
Showing with 9 additions and 0 deletions.
  1. +9 −0 ElunaCreatureAI.h
View
@@ -124,12 +124,21 @@ struct ElunaCreatureAI : ScriptedAI
ScriptedAI::AttackStart(target);
}
+#ifdef TRINITY
+ // Called for reaction at stopping attack at no attackers or targets
+ void EnterEvadeMode(EvadeReason /*why*/) override
+ {
+ if (!sEluna->EnterEvadeMode(me))
+ ScriptedAI::EnterEvadeMode();
+ }
+#else
// Called for reaction at stopping attack at no attackers or targets
void EnterEvadeMode() override
{
if (!sEluna->EnterEvadeMode(me))
ScriptedAI::EnterEvadeMode();
}
+#endif
// Called when the creature is target of hostile action: swing, hostile spell landed, fear/etc)
void AttackedBy(Unit* attacker) override

0 comments on commit a316e1c

Please sign in to comment.