Added check for 0 combo in healing aura strength equation

This commit is contained in:
Knightress Paladin 2021-07-18 22:23:04 -07:00
parent 65ff2fb193
commit 68725a0131

View File

@ -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 {