Changeset 198 for trunk

Show
Ignore:
Timestamp:
11/19/08 13:45:35 (17 years ago)
Author:
yumileroy
Message:

[svn] Fixed charmer or possessor not being entered in the threat lists of creatures who are being attacked by the charmed or possessed unit.

Original author: gvcoman
Date: 2008-11-08 17:46:34-06:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/ThreatManager.cpp

    r102 r198  
    104104    if(isValid() && pMod >= 0) 
    105105    { 
    106         Unit* victim_owner = getTarget()->GetOwner(); 
     106        Unit* victim_owner = getTarget()->GetCharmerOrOwner(); 
    107107        if(victim_owner && victim_owner->isAlive()) 
    108108            getSource()->addThreat(victim_owner, 0.0f);     // create a threat to the owner of a pet, if the pet attacks