Core/Pet: #8043

Closed
wants to merge 1 commit into from
+2 −1
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
{