summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTereneckla <Tereneckla@pm.me>2025-12-07 14:32:58 +0000
committerGitHub <noreply@github.com>2025-12-07 11:32:58 -0300
commit9cfbb4852005ecc3fce4f9365fa71e1094883580 (patch)
tree0ed5a120d81cb8a20c132c4e0f707084a5107e3e /src
parent34f261b92c0e64c47ec5c79a61b82af612f454a0 (diff)
fix(Scripts/DK): fix math after removal of a general function in spell_group pr (#24064)HEADmaster
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_dk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/scripts/Spells/spell_dk.cpp b/src/server/scripts/Spells/spell_dk.cpp
index 4cb86db3da..36c849bc7b 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);