From 9cfbb4852005ecc3fce4f9365fa71e1094883580 Mon Sep 17 00:00:00 2001 From: Tereneckla Date: Sun, 7 Dec 2025 14:32:58 +0000 Subject: [PATCH] fix(Scripts/DK): fix math after removal of a general function in spell_group pr (#24064) --- src/server/scripts/Spells/spell_dk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/scripts/Spells/spell_dk.cpp b/src/server/scripts/Spells/spell_dk.cpp index 4cb86db3d..36c849bc7 100644 --- a/src/server/scripts/Spells/spell_dk.cpp +++ b/src/server/scripts/Spells/spell_dk.cpp @@ -194,7 +194,7 @@ class spell_dk_raise_ally : public SpellScript // DK Ghoul haste refresh float val = (GetCaster()->m_modAttackSpeedPct[BASE_ATTACK] - 1.0f) * 100.0f; - val *= 2000.0f + 2000.0f * ((100.0f + val) / 100.0f); + val = 2000.0f * (100.0f + val) / 100.0f; ghoul->m_modAttackSpeedPct[BASE_ATTACK] = GetCaster()->m_modAttackSpeedPct[BASE_ATTACK]; ghoul->SetFloatValue(UNIT_FIELD_BASEATTACKTIME, val);