fix(Scripts/DK): fix math after removal of a general function in spell_group pr (#24064)

This commit is contained in:
Tereneckla
2025-12-07 14:32:58 +00:00
committed by GitHub
parent 34f261b92c
commit 9cfbb48520

View File

@@ -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);