Update src/phases/command-phase.ts

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
schmidtc1 2024-12-29 10:05:33 -05:00 committed by GitHub
parent 7f46670192
commit 5ccd18416c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -81,7 +81,7 @@ export class CommandPhase extends FieldPhase {
moveQueue.shift();
}
if (moveQueue.length !== 0) {
if (moveQueue.length > 0) {
const queuedMove = moveQueue[0];
if (!queuedMove.move) {
this.handleCommand(Command.FIGHT, -1);