From 111059afe608a2df5b85cdf124966a270e47c88f Mon Sep 17 00:00:00 2001 From: hondacrx Date: Wed, 11 Jan 2023 01:18:05 -0500 Subject: [PATCH] Core/Creatures: Fix logic when searching for nearby creatures by StringId Port From (https://github.com/TrinityCore/TrinityCore/commit/795edfaf98e065b8eaa76683e0cd1a4211b0847d) --- Source/Game/Maps/GridNotifiers.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/Maps/GridNotifiers.cs b/Source/Game/Maps/GridNotifiers.cs index ff2a6c2d6..5e40d19c9 100644 --- a/Source/Game/Maps/GridNotifiers.cs +++ b/Source/Game/Maps/GridNotifiers.cs @@ -2460,7 +2460,7 @@ namespace Game.Maps if (i_args.CreatureId.HasValue && u.GetEntry() != i_args.CreatureId) return false; - if (i_args.StringId != null && u.HasStringId(i_args.StringId)) + if (i_args.StringId != null && !u.HasStringId(i_args.StringId)) return false; if (i_args.IsAlive.HasValue && u.IsAlive() != i_args.IsAlive)