Core/Combat: Fixed combat after remove charm (#27248)

https://github.com/TrinityCore/TrinityCore/pull/27038#issuecomment-958784361
# Conflicts:
#	src/server/game/Combat/CombatManager.h
This commit is contained in:
Lucas Nascimento authored and Ovahlord committed 2021-11-28 12:21:59 +01:00
1 parent 34c2da7bd9
commit 336ed5ce54
3 files changed
+31

No files matched your search

+1
View File
@@ -12422,6 +12422,7 @@ void Unit::RemoveCharmedBy(Unit* charmer)
ASSERT(type != CHARM_TYPE_VEHICLE || (GetTypeId() == TYPEID_UNIT && IsVehicle()));
charmer->SetCharm(this, false);
m_combatManager.RevalidateCombat();
Player* playerCharmer = charmer->ToPlayer();