From 47d54ce8594bec7ff01bf0d746bc7975924ee471 Mon Sep 17 00:00:00 2001 From: Vincent-Michael Date: Sat, 12 Dec 2015 17:56:03 +0100 Subject: Scripts/Pets: Fixed non pch build part 2 --- src/server/scripts/Pet/pet_mage.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/server/scripts/Pet/pet_mage.cpp b/src/server/scripts/Pet/pet_mage.cpp index 4890e4b47f4..42f0caec974 100644 --- a/src/server/scripts/Pet/pet_mage.cpp +++ b/src/server/scripts/Pet/pet_mage.cpp @@ -25,6 +25,7 @@ #include "CombatAI.h" #include "Pet.h" #include "PetAI.h" +#include "Cell.h" #include "GridNotifiers.h" enum MageSpells @@ -107,10 +108,10 @@ class npc_pet_mage_mirror_image : public CreatureScript } // Prioritize units with threat referenced to owner if (highestThreat > 0.0f && highestThreatUnit) - me->Attack(highestThreatUnit, false); + me->Attack(highestThreatUnit, false); // If there is no such target, try to attack nearest hostile unit if such exists else if (nearestPlayer) - me->Attack(nearestPlayer, false); + me->Attack(nearestPlayer, false); } bool IsInThreatList(Unit* target) -- cgit v1.2.3