fix(Core/Scripts): Fix Valithria Dreamwalker encounter and default JustExitedCombat (#25315)

Co-authored-by: ForesterDev <11771800+ForesterDev@users.noreply.github.com>
This commit is contained in:
blinkysc
2026-03-30 14:22:36 -05:00
committed by GitHub
parent 263802381c
commit 037588ed03
2 changed files with 11 additions and 30 deletions
+2 -6
View File
@@ -309,12 +309,8 @@ void CreatureAI::EngagementOver()
void CreatureAI::JustExitedCombat()
{
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);
// Creatures evade through UpdateVictim() detecting out-of-combat state.
// Scripts that need custom combat-exit behavior should override this.
}
/*void CreatureAI::AttackedBy(Unit* attacker)