mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Added check to prevent heal aura from being negative
This commit is contained in:
parent
ce31ac9fd1
commit
9be690770a
@ -99,7 +99,7 @@ impl CharacterBehavior for Data {
|
||||
category: _,
|
||||
source: _,
|
||||
} => {
|
||||
data.strength *= 1.0 + (self.combo_at_cast).log(2.0_f32);
|
||||
data.strength *= 1.0 + self.combo_at_cast.max(1.0_f32).log(2.0_f32);
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user