Core/GameObject: Fix wrong calculation of the spellfous distance
Port From (https://github.com/TrinityCore/TrinityCore/commit/2de20560fe7caccd57fbfd1b17856fac43d5f921)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user