Changeset 186 for trunk/src/game/PetAI.cpp
- Timestamp:
- 11/19/08 13:44:25 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/PetAI.cpp
r156 r186 49 49 if( !i_pet.getVictim() && i_pet.GetCharmInfo() && 50 50 i_pet.GetCharmInfo()->HasReactState(REACT_AGGRESSIVE) && 51 u->isTargetableForAttack() && i_pet.IsHostileTo( u) &&51 i_pet.IsHostileTo( u ) && i_pet.canAttack(u) && 52 52 u->isInAccessablePlaceFor(&i_pet)) 53 53 { … … 96 96 return true; 97 97 98 return !i_pet. getVictim()->isTargetableForAttack();98 return !i_pet.canAttack(i_pet.getVictim()); 99 99 } 100 100