From 41f34ea07bbb80faf23efc9c63c4543abbbfe0c6 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Fri, 13 Mar 2026 08:07:00 +0100 Subject: [PATCH] fix(Core/Spells): Fix typo in tangent() function causing incorrect negative value clamping (#23900) Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: FrancescoBorzi <75517+FrancescoBorzi@users.noreply.github.com> Co-authored-by: sudlud --- src/server/game/Spells/Spell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index dec1d4721..739fe62ef 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -1862,7 +1862,7 @@ float tangent(float x) //if (x <= -std::numeric_limits::max()) return -std::numeric_limits::max(); if (x < 100000.0f && x > -100000.0f) return x; if (x >= 100000.0f) return 100000.0f; - if (x <= 100000.0f) return -100000.0f; + if (x <= -100000.0f) return -100000.0f; return 0.0f; }