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.

# Conflicts:
#	src/server/game/AI/CreatureAI.cpp
#	src/server/game/AI/ScriptedAI/ScriptedFollowerAI.cpp
#	src/server/scripts/EasternKingdoms/ScarletEnclave/chapter5.cpp
#	src/server/scripts/Kalimdor/zone_desolace.cpp
#	src/server/scripts/Northrend/zone_borean_tundra.cpp
This commit is contained in:
Treeston authored and Ovahlord committed 2020-07-22 18:38:35 +02:00
1 parent de6a514ec5
commit db3282e65a
22 files changed
+33 -31

No files matched your search

+1 -1
View File
@@ -49,8 +49,8 @@ class npc_pet_pri_lightwell : public CreatureScript
if (!me->IsAlive())
return;
me->GetThreatManager().ClearAllThreat();
me->CombatStop(true);
me->GetThreatManager().NotifyDisengaged();
me->ResetPlayerDamageReq();
}
};