Scripts/Pets: Fixed non pch build part 3 ...
This commit is contained in:
1 parent
47d54ce859
commit
54424aff30
1 file changed
+4
-2
@@ -26,7 +26,9 @@
|
||||
#include "Pet.h"
|
||||
#include "PetAI.h"
|
||||
#include "Cell.h"
|
||||
#include "CellImpl.h"
|
||||
#include "GridNotifiers.h"
|
||||
#include "GridNotifiersImpl.h"
|
||||
|
||||
enum MageSpells
|
||||
{
|
||||
@@ -108,10 +110,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)
|
||||
|
||||
Reference in new issue
Block a user