mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Adapt to TC changes
This commit is contained in:
@@ -124,12 +124,21 @@ struct ElunaCreatureAI : ScriptedAI
|
|||||||
ScriptedAI::AttackStart(target);
|
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
|
// Called for reaction at stopping attack at no attackers or targets
|
||||||
void EnterEvadeMode() override
|
void EnterEvadeMode() override
|
||||||
{
|
{
|
||||||
if (!sEluna->EnterEvadeMode(me))
|
if (!sEluna->EnterEvadeMode(me))
|
||||||
ScriptedAI::EnterEvadeMode();
|
ScriptedAI::EnterEvadeMode();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Called when the creature is target of hostile action: swing, hostile spell landed, fear/etc)
|
// Called when the creature is target of hostile action: swing, hostile spell landed, fear/etc)
|
||||||
void AttackedBy(Unit* attacker) override
|
void AttackedBy(Unit* attacker) override
|
||||||
|
|||||||
Reference in New Issue
Block a user