diff options
author | Vincent-Michael <vincent_michael@gmx.de> | 2015-12-12 17:56:03 +0100 |
---|---|---|
committer | Vincent-Michael <vincent_michael@gmx.de> | 2015-12-12 17:56:03 +0100 |
commit | 47d54ce8594bec7ff01bf0d746bc7975924ee471 (patch) | |
tree | d7cedc4e2b25b6034b7d73026bc32cfbe40d0851 /src | |
parent | 677f281b9a81d7a511896bf201e32f4b7131567b (diff) |
Scripts/Pets: Fixed non pch build part 2
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Pet/pet_mage.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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) |