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

[svn] Fixed pets stopping attack after pressing the attack button multiple times.

Original author: gvcoman
Date: 2008-11-07 18:46:25-06:00

Files:
1 modified

Legend:

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

    r174 r191  
    105105                        return; 
    106106 
    107                     if(pet->getVictim()) 
    108                         pet->AttackStop(); 
    109  
    110107                    if(pet->GetTypeId() != TYPEID_PLAYER) 
    111108                    { 
     
    124121                    else                                    // charmed player 
    125122                    { 
     123                        if(pet->getVictim() && pet->getVictim() != TargetUnit) 
     124                            pet->AttackStop(); 
     125 
    126126                        pet->Attack(TargetUnit,true); 
    127127                        pet->SendPetAIReaction(guid1);