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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user