mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
Scripts/Pets: Fixed non pch build part 2
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user