From 68725a01317a31fb99428f712c784c0ee4e258e8 Mon Sep 17 00:00:00 2001 From: Knightress Paladin Date: Sun, 18 Jul 2021 22:23:04 -0700 Subject: [PATCH] Added check for 0 combo in healing aura strength equation --- common/src/states/basic_aura.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/states/basic_aura.rs b/common/src/states/basic_aura.rs index c9835e6d2e..a4c029a2fd 100644 --- a/common/src/states/basic_aura.rs +++ b/common/src/states/basic_aura.rs @@ -84,7 +84,8 @@ impl CharacterBehavior for Data { category: _, source: _, } => { - data.strength *= 1.0 + (combo as f32).log(2.0_f32); + data.strength *= + 1.0 + (if combo > 0 { combo } else { 1 } as f32).log(2.0_f32); }, } update.server_events.push_front(ServerEvent::ComboChange {