Fix issue if you are damaged while doing a jump attack

This commit is contained in:
Gwilym Kuiper 2022-03-05 19:34:47 +00:00
parent 7b43debd3e
commit ed3b075b92

View file

@ -375,7 +375,7 @@ impl SwordState {
} }
} }
fn jump_attack_frame(self, timer: u16) -> u16 { fn jump_attack_frame(self, timer: u16) -> u16 {
(self.jump_attack_duration() - timer) / 8 (self.jump_attack_duration().saturating_sub(timer)) / 8
} }
fn hold_frame(self) -> u16 { fn hold_frame(self) -> u16 {
7 7