mirror of
https://github.com/azerothcore/azerothcore-wotlk.git
synced 2026-04-27 07:10:53 -07:00
fix(Core/Movement): restore JustExitedCombat evade to fix waypoint resume (#25332)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
373e1d75c0
commit
eb09ad5d60
1 changed files with 6 additions and 2 deletions
|
|
@ -309,8 +309,12 @@ void CreatureAI::EngagementOver()
|
|||
|
||||
void CreatureAI::JustExitedCombat()
|
||||
{
|
||||
// Creatures evade through UpdateVictim() detecting out-of-combat state.
|
||||
// Scripts that need custom combat-exit behavior should override this.
|
||||
EngagementOver();
|
||||
|
||||
// If creature is alive, in world, and not already evading, trigger evade to return home
|
||||
// Check IsInWorld to avoid evade during server shutdown/cleanup
|
||||
if (me->IsAlive() && me->IsInWorld() && !me->IsInEvadeMode())
|
||||
EnterEvadeMode(EVADE_REASON_NO_HOSTILES);
|
||||
}
|
||||
|
||||
/*void CreatureAI::AttackedBy(Unit* attacker)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue