mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-07 07:17:57 +00:00
fix(Core/SmartAI): Fix Scarlet Monastery Cathedral encounter reset (#25362)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -697,6 +697,20 @@ void SmartAI::MovementInform(uint32 MovementType, uint32 Data)
|
||||
MovepointReached(Data);
|
||||
}
|
||||
|
||||
void SmartAI::JustExitedCombat()
|
||||
{
|
||||
// When evade is suppressed or disabled, don't auto-evade on combat exit.
|
||||
// This prevents scripted encounters (e.g. Mograine/Whitemane) from resetting
|
||||
// when bosses temporarily stop fighting during scripted phases.
|
||||
if (mSuppressEvade || mEvadeDisabled)
|
||||
{
|
||||
EngagementOver();
|
||||
return;
|
||||
}
|
||||
|
||||
CreatureAI::JustExitedCombat();
|
||||
}
|
||||
|
||||
void SmartAI::EnterEvadeMode(EvadeReason /*why*/)
|
||||
{
|
||||
if (mSuppressEvade)
|
||||
|
||||
Reference in New Issue
Block a user