diff options
| author | gvcoman <none@none> | 2008-11-08 23:32:15 -0600 |
|---|---|---|
| committer | gvcoman <none@none> | 2008-11-08 23:32:15 -0600 |
| commit | c014d6667c71f1d618fe195b21e2dd86e5407825 (patch) | |
| tree | 1fb039873fd6206d2829adc9e9b31e4a679d76a9 /src/game/PossessedAI.cpp | |
| parent | 35a284df7ea832a3c4beaa873af39441b67cb581 (diff) | |
[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
--HG--
branch : trunk
Diffstat (limited to 'src/game/PossessedAI.cpp')
| -rw-r--r-- | src/game/PossessedAI.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/PossessedAI.cpp b/src/game/PossessedAI.cpp index b66a648294f..6b803303185 100644 --- a/src/game/PossessedAI.cpp +++ b/src/game/PossessedAI.cpp @@ -24,9 +24,12 @@ void PossessedAI::AttackStart(Unit *u)
{
- if( i_pet.getVictim() || !u )
+ if( !u )
return;
+ if (i_pet.getVictim() && u != i_pet.getVictim())
+ i_pet.AttackStop();
+
if(i_pet.Attack(u, true))
i_victimGuid = u->GetGUID();
|
