Core/GameObject: Fix wrong calculation of the spellfous distance

Port From (https://github.com/TrinityCore/TrinityCore/commit/2de20560fe7caccd57fbfd1b17856fac43d5f921)
This commit is contained in:
hondacrx
2022-01-07 09:41:56 -05:00
parent 7b63d93861
commit 50038d5ab2
+1 -1
View File
@@ -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);
}