Core/Units: Fixed units keeping UNIT_FLAG_PET_IN_COMBAT

This commit is contained in:
luis
2026-11-17 22:51:57 -03:00
parent 13e13c17df
commit e8639fe04e
+3
View File
@@ -420,6 +420,9 @@ bool CombatManager::UpdateOwnerCombatState() const
_owner->AtDisengage();
// UNIT_FLAG_PET_IN_COMBAT will be cleared if controlled summons are not in combat anymore
if (!_owner->IsPet())
_owner->UpdatePetCombatState();
if (Unit* master = _owner->GetCharmerOrOwner())
master->UpdatePetCombatState();
}