Changeset 200 for trunk/src/game/Player.cpp
- Timestamp:
- 11/19/08 13:45:43 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Player.cpp
r193 r200 18765 18765 { 18766 18766 target->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PVP_ATTACKABLE); 18767 // Reinitialize the pet bar and make the pet come back to the owner 18767 18768 if(((Creature*)target)->isPet()) 18769 { 18768 18770 PetSpellInitialize(); 18771 if (!target->getVictim()) 18772 { 18773 target->GetMotionMaster()->MoveFollow(this, PET_FOLLOW_DIST, PET_FOLLOW_ANGLE); 18774 target->GetCharmInfo()->SetCommandState(COMMAND_FOLLOW); 18775 } 18776 } 18769 18777 else if (target->isAlive()) 18770 18778 {