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/PetAI.cpp

    r186 r191  
    6666void PetAI::AttackStart(Unit *u) 
    6767{ 
    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(); 
    7073 
    7174    if(i_pet.Attack(u,true))