aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/Unit.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 480eb9f9121..608932b531a 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -8470,7 +8470,9 @@ void Unit::SetCharm(Unit* charm, bool apply)
if(!charm->RemoveUInt64Value(UNIT_FIELD_CHARMEDBY, GetGUID()))
sLog.outCrash("Unit %u is being uncharmed, but it has another charmer %u", charm->GetEntry(), charm->GetCharmerGUID());
- if(charm->GetOwnerGUID() != GetGUID())
+ if(charm->GetTypeId() == TYPEID_PLAYER
+ || !((Creature*)charm)->HasSummonMask(SUMMON_MASK_MINION)
+ || charm->GetOwnerGUID() != GetGUID())
m_Controlled.erase(charm);
}
}