From a83baa82434f4725dba002252c5e5cfd532dd5f0 Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 24 Jan 2021 16:01:38 -0500 Subject: [PATCH] Fixed how the speed stat was applied to beams. --- common/src/comp/ability.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/src/comp/ability.rs b/common/src/comp/ability.rs index 4006deffc9..fd3ea698ff 100644 --- a/common/src/comp/ability.rs +++ b/common/src/comp/ability.rs @@ -471,8 +471,9 @@ impl CharacterAbility { } => { *buildup_duration = (*buildup_duration as f32 / speed) as u64; *recover_duration = (*recover_duration as f32 / speed) as u64; - *base_hps = (*base_hps as f32 * power) as u32; - *base_dps = (*base_dps as f32 * power) as u32; + // hps and dps adjusted by speed as they are normalized by tick rate already + *base_hps = (*base_hps as f32 * power * speed) as u32; + *base_dps = (*base_dps as f32 * power * speed) as u32; *tick_rate *= speed; }, }