From 9d6d9efa65d3d57ec7d61198c12d8282810bb4b6 Mon Sep 17 00:00:00 2001 From: gvcoman Date: Fri, 7 Nov 2008 18:46:25 -0600 Subject: [svn] Fixed pets stopping attack after pressing the attack button multiple times. --HG-- branch : trunk --- src/game/PetHandler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/game/PetHandler.cpp') diff --git a/src/game/PetHandler.cpp b/src/game/PetHandler.cpp index 60a4bec0891..ac198c0be67 100644 --- a/src/game/PetHandler.cpp +++ b/src/game/PetHandler.cpp @@ -104,9 +104,6 @@ void WorldSession::HandlePetAction( WorldPacket & recv_data ) if( GetPlayer()->IsFriendlyTo(TargetUnit)) return; - if(pet->getVictim()) - pet->AttackStop(); - if(pet->GetTypeId() != TYPEID_PLAYER) { if (((Creature*)pet)->AI()) @@ -123,6 +120,9 @@ void WorldSession::HandlePetAction( WorldPacket & recv_data ) } else // charmed player { + if(pet->getVictim() && pet->getVictim() != TargetUnit) + pet->AttackStop(); + pet->Attack(TargetUnit,true); pet->SendPetAIReaction(guid1); } -- cgit v1.2.3