Show
Ignore:
Timestamp:
11/22/08 00:35:58 (17 years ago)
Author:
yumileroy
Message:

* Don't allow pets to attack in melee if owner is pacified. This applies for possessed "pets" as well.
* Use proper spell ID in unsummoning possessed units on channeling interrupt.
* Allow only once to init pet bar for CharmInfo?
* Export CharmInfo? to be available to scripts
* Allow to disable the melee attack command when initializing the pet action bar

Original author: gvcoman
Date: 2008-11-20 20:27:04-05:00

Files:
1 modified

Legend:

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

    r200 r277  
    2525void PossessedAI::AttackStart(Unit *u) 
    2626{ 
    27     if( !u ) 
     27    if( !u || i_pet.GetCharmer()->HasAuraType(SPELL_AURA_MOD_PACIFY)) 
    2828        return; 
    2929 
     
    9696            return; 
    9797        } 
    98         else if(i_pet.IsWithinCombatDist(i_pet.getVictim(), ATTACK_DISTANCE) && i_pet.isAttackReady()) 
     98        else if(i_pet.IsWithinCombatDist(i_pet.getVictim(), ATTACK_DISTANCE) && i_pet.isAttackReady() && !i_pet.GetCharmer()->HasAuraType(SPELL_AURA_MOD_PACIFY)) 
    9999        { 
    100100            i_pet.AttackerStateUpdate(i_pet.getVictim());