Core/Combat: Fixed combat after remove charm

Port From (https://github.com/TrinityCore/TrinityCore/commit/4ed918fcb38d7fd3752899a0eafd7ad62b7217af)
This commit is contained in:
hondacrx
2022-05-30 13:26:37 -04:00
parent 91fda8f37d
commit 2276940252
2 changed files with 22 additions and 0 deletions
+1
View File
@@ -481,6 +481,7 @@ namespace Game.Entities
Cypher.Assert(type != CharmType.Vehicle || (IsTypeId(TypeId.Unit) && IsVehicle()));
charmer.SetCharm(this, false);
m_combatManager.RevalidateCombat();
Player playerCharmer = charmer.ToPlayer();
if (playerCharmer)