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

[svn] * Disabled the move and stay commands while pet is possessed
* Make pet come back to its owner after possession ends if it's not currently in combat
* Allow the possessed unit to properly change attack targets
* Also remove charm effects from charmed target on owner aura cancel

Original author: gvcoman
Date: 2008-11-08 23:32:15-06:00

Files:
1 modified

Legend:

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

    r186 r200  
    2525void PossessedAI::AttackStart(Unit *u) 
    2626{ 
    27     if( i_pet.getVictim() || !u ) 
     27    if( !u ) 
    2828        return; 
     29 
     30    if (i_pet.getVictim() && u != i_pet.getVictim()) 
     31        i_pet.AttackStop(); 
    2932 
    3033    if(i_pet.Attack(u, true))