mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
Scripts/Pets: allow Army of the Dead ghouls to go nuts with their attacks.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user