Skip to content
Browse files

Core/Pet:

*if the owner does not see the attacker can not attack the pet
  • Loading branch information...
1 parent 4596fc7 commit b019f784fb1c3244d192e9a9359fec9c8840b6e9 Retriman committed Oct 11, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/server/game/AI/CoreAI/PetAI.cpp
View
3 src/server/game/AI/CoreAI/PetAI.cpp
@@ -105,7 +105,8 @@ void PetAI::UpdateAI(const uint32 diff)
return;
}
- DoMeleeAttackIfReady();
+ if (me->getVictim()->IsVisible() && me->GetOwner()->getVictim() && me->GetOwner()->getVictim()->IsVisible())
+ DoMeleeAttackIfReady();
}
else if (owner && me->GetCharmInfo()) //no victim
{

0 comments on commit b019f78

Please sign in to comment.
Something went wrong with that request. Please try again.