From a7f49ff6b2f96a34eca36f33f48d62f3e201c293 Mon Sep 17 00:00:00 2001 From: Grimgravy Date: Sat, 14 Mar 2026 08:44:02 -0300 Subject: [PATCH] fix(Core/GridNotifiers): fix ImmuneToPC npcs reacting to stealthed players (#21652) --- src/server/game/Grids/Notifiers/GridNotifiers.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/server/game/Grids/Notifiers/GridNotifiers.cpp b/src/server/game/Grids/Notifiers/GridNotifiers.cpp index 36ed17744..62b278b9c 100644 --- a/src/server/game/Grids/Notifiers/GridNotifiers.cpp +++ b/src/server/game/Grids/Notifiers/GridNotifiers.cpp @@ -131,6 +131,12 @@ inline void CreatureUnitRelocationWorker(Creature* c, Unit* u) return; } + // Prevents AI reaction when immunity flags are active + if (c->IsImmuneToNPC()) + { + return; + } + if (!c->HasUnitState(UNIT_STATE_SIGHTLESS)) { if (c->IsAIEnabled && c->CanSeeOrDetect(u, false, true))