Update ElunaCreatureAI.h

This commit is contained in:
IntelligentQuantum
2022-04-02 15:41:10 +04:30
committed by GitHub
parent 77aebc11b7
commit 1937d2839f

View File

@@ -153,21 +153,12 @@ 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
#ifdef TRINITY
// Called when creature appears in the world (spawn, respawn, grid load etc...)