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

[svn] Remove isVisible function. Check stealth and invisible in canAttack();
Use new remove aura by interrupt flag function.

Original author: megamage
Date: 2008-11-07 09:36:46-06:00

Files:
1 modified

Legend:

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

    r156 r186  
    4949    if( !i_pet.getVictim() && i_pet.GetCharmInfo() && 
    5050        i_pet.GetCharmInfo()->HasReactState(REACT_AGGRESSIVE) && 
    51         u->isTargetableForAttack() && i_pet.IsHostileTo( u ) && 
     51        i_pet.IsHostileTo( u ) && i_pet.canAttack(u) && 
    5252        u->isInAccessablePlaceFor(&i_pet)) 
    5353    { 
     
    9696        return true; 
    9797 
    98     return !i_pet.getVictim()->isTargetableForAttack(); 
     98    return !i_pet.canAttack(i_pet.getVictim()); 
    9999} 
    100100