Explicitly check against Moves.NONE

Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
This commit is contained in:
Sirz Benjie 2025-05-26 23:18:04 -05:00
parent 648a565eea
commit ecc175f176
No known key found for this signature in database
GPG Key ID: 38AC42D68CF5E138

View File

@ -283,7 +283,7 @@ export class CommandPhase extends FieldPhase {
multiple: move.targets.length > 1, multiple: move.targets.length > 1,
}; };
if (!moveId) { if (moveId === Moves.NONE) {
turnCommand.targets = [this.fieldIndex]; turnCommand.targets = [this.fieldIndex];
} }