Core/AI: No longer do strange things when told to enter evade mode while there's no need to do so, typically by terrible legacy code.

(cherry picked from commit 163f44c1b0)
This commit is contained in:
Treeston
2019-07-29 00:13:40 +02:00
committed by Shauren
parent 59f95b7572
commit 3269c42789
3 changed files with 5 additions and 4 deletions

View File

@@ -265,10 +265,7 @@ void ObjectGridStoper::Visit(CreatureMapType &m)
iter->GetSource()->RemoveAllDynObjects();
iter->GetSource()->RemoveAllAreaTriggers();
if (iter->GetSource()->IsInCombat())
{
iter->GetSource()->CombatStop();
iter->GetSource()->AI()->EnterEvadeMode();
}
}
}