Changeset 191 for trunk/src/game/PetAI.cpp
- Timestamp:
- 11/19/08 13:44:57 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/PetAI.cpp
r186 r191 66 66 void PetAI::AttackStart(Unit *u) 67 67 { 68 if( inCombat || !u || (i_pet.isPet() && ((Pet&)i_pet).getPetType() == MINI_PET) ) 69 return; 68 if( !u || (i_pet.isPet() && ((Pet&)i_pet).getPetType() == MINI_PET) ) 69 return; 70 71 if (inCombat && i_pet.getVictim() && u != i_pet.getVictim()) 72 i_pet.AttackStop(); 70 73 71 74 if(i_pet.Attack(u,true))