From 71e233eddcc4f16b832573adbb74ed941dacad0a Mon Sep 17 00:00:00 2001 From: Ovahlord <18347559+ovahlord@users.noreply.github.com> Date: Mon, 8 Jun 2026 20:27:42 +0200 Subject: [PATCH] Core/Spells: improve random radius calculation by reducing the chance of hitting the center the closer we get --- src/server/game/Spells/SpellInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/game/Spells/SpellInfo.cpp b/src/server/game/Spells/SpellInfo.cpp index 20b1488949..aa8676314b 100644 --- a/src/server/game/Spells/SpellInfo.cpp +++ b/src/server/game/Spells/SpellInfo.cpp @@ -674,7 +674,7 @@ float SpellEffectInfo::CalcRadius(WorldObject* caster /*= nullptr*/, SpellTarget if (target.GetTarget() == TARGET_DEST_CASTER_RANDOM || target.GetTarget() == TARGET_DEST_TARGET_RANDOM || target.GetTarget() == TARGET_DEST_DEST_RANDOM) - radius += (entry->RadiusMax - radius) * rand_norm(); + radius += (entry->RadiusMax - radius) * std::sqrt(rand_norm()); else if (radius == 0.0f) radius = entry->RadiusMax;