Combat/Threat: Split ThreatManager::NotifyDisengaged off from ThreatManager::ClearAllThreat. NotifyDisengaged signifies intent to clear the engagement flag, and should only be called from AI. Fixes #23490.

(cherry picked from commit 1158f267df)
This commit is contained in:
Treeston
2019-06-23 23:31:51 +02:00
committed by Shauren
parent a9946bd580
commit 38d7c1530a
27 changed files with 41 additions and 41 deletions

View File

@@ -270,7 +270,6 @@ void ObjectGridStoper::Visit(CreatureMapType &m)
if (iter->GetSource()->IsInCombat())
{
iter->GetSource()->CombatStop();
iter->GetSource()->GetThreatManager().ClearAllThreat();
iter->GetSource()->AI()->EnterEvadeMode();
}
}