fix(Core/GridNotifiers): fix ImmuneToPC npcs reacting to stealthed players (#21652)
This commit is contained in:
parent
8921b1f8a6
commit
a7f49ff6b2
1 changed files with 6 additions and 0 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue