Scripts/Pets: allow Army of the Dead ghouls to go nuts with their attacks.

This commit is contained in:
Ovahlord
2020-05-08 23:00:05 +02:00
parent d0c7bbab40
commit d9cd7d6aa4

View File

@@ -233,15 +233,8 @@ enum ArmyOfTheDead
struct npc_pet_dk_army_of_the_dead_ghoul : public AggressorAI
{
npc_pet_dk_army_of_the_dead_ghoul(Creature* creature) : AggressorAI(creature)
{
Initialize();
}
npc_pet_dk_army_of_the_dead_ghoul(Creature* creature) : AggressorAI(creature), _readyToAttack(false) { }
void Initialize()
{
_readyToAttack = false;
}
void JustAppeared() override
{
@@ -261,10 +254,6 @@ struct npc_pet_dk_army_of_the_dead_ghoul : public AggressorAI
if (!_readyToAttack)
return false;
Unit* owner = me->GetOwner();
if (owner && !target->IsInCombatWith(owner))
return false;
return AggressorAI::CanAIAttack(target);
}