mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 09:31:34 +11:00
Fix issue if you are damaged while doing a jump attack
This commit is contained in:
parent
7b43debd3e
commit
ed3b075b92
|
@ -375,7 +375,7 @@ impl SwordState {
|
|||
}
|
||||
}
|
||||
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 {
|
||||
7
|
||||
|
|
Loading…
Reference in a new issue