mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Update ElunaCreatureAI.h
This commit is contained in:
committed by
GitHub
parent
77aebc11b7
commit
1937d2839f
@@ -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...)
|
||||
|
||||
Reference in New Issue
Block a user