mirror of
https://github.com/azerothcore/azerothcore-wotlk.git
synced 2025-11-10 12:24:22 +08:00
Merge 266f4bac34c36e83d98e9cd360820cf1453d9b0a into d4cd580ddcf382acbca3bd104f09ca4c39ad811a
This commit is contained in:
commit
af6cd5ebd1
@ -131,6 +131,12 @@ inline void CreatureUnitRelocationWorker(Creature* c, Unit* u)
|
||||
return;
|
||||
}
|
||||
|
||||
// Prevents AI reaction when immunity flags are active
|
||||
if (c->HasUnitFlag(UNIT_FLAG_IMMUNE_TO_NPC))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (!c->HasUnitState(UNIT_STATE_SIGHTLESS))
|
||||
{
|
||||
if (c->IsAIEnabled && c->CanSeeOrDetect(u, false, true))
|
||||
|
||||
@ -52,7 +52,7 @@ const Position startPath[WAYPOINTS_COUNT] =
|
||||
|
||||
struct boss_captain_skarloc : public BossAI
|
||||
{
|
||||
boss_captain_skarloc(Creature* creature) : BossAI(creature, DATA_CAPTAIN_SKARLOC), summons(me)
|
||||
boss_captain_skarloc(Creature* creature) : BossAI(creature, DATA_CAPTAIN_SKARLOC), summons(me), _spawnedAdds(false)
|
||||
{
|
||||
scheduler.SetValidator([this]
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user