Skip to content

Commit 20e1998

Browse files
committed
Fix out of ammo check
1 parent a67e41a commit 20e1998

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dist/duckhunt.js

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

src/modules/Game.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ class Game {
303303
return false;
304304
}
305305

306-
return this.isWaveTimeUp() || this.outOfAmmo() || !this.stage.ducksActive();
306+
return this.isWaveTimeUp() || (this.outOfAmmo() && this.stage.ducksAlive()) || !this.stage.ducksActive();
307307
}
308308

309309
isWaveTimeUp() {

0 commit comments

Comments
 (0)