Merge 266f4bac34c36e83d98e9cd360820cf1453d9b0a into d4cd580ddcf382acbca3bd104f09ca4c39ad811a

This commit is contained in:
Grimgravy 2025-11-09 08:37:03 -03:00 committed by GitHub
commit af6cd5ebd1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -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))

View File

@ -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]
{