From 50038d5ab285f910ea193dc7809f018a3e87a780 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Fri, 7 Jan 2022 09:41:56 -0500 Subject: [PATCH] Core/GameObject: Fix wrong calculation of the spellfous distance Port From (https://github.com/TrinityCore/TrinityCore/commit/2de20560fe7caccd57fbfd1b17856fac43d5f921) --- 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 77c426a39..860287db9 100644 --- a/Source/Game/Maps/GridNotifiers.cs +++ b/Source/Game/Maps/GridNotifiers.cs @@ -2696,7 +2696,7 @@ namespace Game.Maps if (!go.IsSpawned()) return false; - float dist = go.GetGoInfo().GetSpellFocusRadius() / 2.0f; + float dist = go.GetGoInfo().GetSpellFocusRadius(); return go.IsWithinDistInMap(_caster, dist); }