From 78647da51dffb64bbd21fbba063edcb99a422297 Mon Sep 17 00:00:00 2001 From: gvcoman Date: Sat, 8 Nov 2008 17:46:34 -0600 Subject: [svn] Fixed charmer or possessor not being entered in the threat lists of creatures who are being attacked by the charmed or possessed unit. --HG-- branch : trunk --- src/game/ThreatManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/ThreatManager.cpp b/src/game/ThreatManager.cpp index 253bc2a936c..c85959b561f 100644 --- a/src/game/ThreatManager.cpp +++ b/src/game/ThreatManager.cpp @@ -103,7 +103,7 @@ void HostilReference::addThreat(float pMod) fireStatusChanged(ThreatRefStatusChangeEvent(UEV_THREAT_REF_THREAT_CHANGE, this, pMod)); if(isValid() && pMod >= 0) { - Unit* victim_owner = getTarget()->GetOwner(); + Unit* victim_owner = getTarget()->GetCharmerOrOwner(); if(victim_owner && victim_owner->isAlive()) getSource()->addThreat(victim_owner, 0.0f); // create a threat to the owner of a pet, if the pet attacks } -- cgit v1.2.3