1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2025-01-16 07:37:45 +00:00

Refire fix

This commit is contained in:
dawnDus 2022-04-24 17:45:44 -04:00
parent f672ff6f24
commit 5fdd9676cb
No known key found for this signature in database
GPG key ID: 972AABDE81848F21

View file

@ -176,9 +176,10 @@ impl Weapon {
self.empty_counter = self.empty_counter.saturating_sub(1);
self.refire_timer = self.refire_timer.saturating_sub(1);
if self.refire_timer > 0 {
return;
} else if player.controller.trigger_shoot() {
if player.controller.trigger_shoot() {
if self.refire_timer > 0 {
return;
}
self.refire_timer = 4;
}