mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
Core/GameObject: Fix wrong calculation of the spellfous distance
Closes #24177
(cherry picked from commit 828987a46a)
This commit is contained in:
@@ -733,7 +733,7 @@ namespace Trinity
|
||||
if (!go->isSpawned())
|
||||
return false;
|
||||
|
||||
float const dist = go->GetGOInfo()->GetSpellFocusRadius() / 2.f;
|
||||
float const dist = go->GetGOInfo()->GetSpellFocusRadius();
|
||||
return go->IsWithinDistInMap(_caster, dist);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user