[Titan] Fix moves notation
authorBenjamin Auder <benjamin.auder@somewhere>
Fri, 12 Mar 2021 17:00:28 +0000 (18:00 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Fri, 12 Mar 2021 17:00:28 +0000 (18:00 +0100)
client/src/variants/Titan.js

index f8d626e..53420e8 100644 (file)
@@ -257,6 +257,7 @@ export class TitanRules extends ChessRules {
       if (
         V.AUGMENTED_PIECES.includes(move.vanish[0].p) ||
         (
+          move.appear.length >= 2 &&
           move.vanish.length >= 2 &&
           V.AUGMENTED_PIECES.includes(move.vanish[1].p)
         )