X-Git-Url: https://git.auder.net/css/rpsls.css?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fvariants%2FTitan.js;h=53420e8368810eb30612af73118738907919200c;hb=58327965b8edcc3d1617058283a5111edde1c39b;hp=9e651b0da49823f155b04902bbe123632a414772;hpb=3208c66750e6a677b407267c44c35a395208c196;p=vchess.git diff --git a/client/src/variants/Titan.js b/client/src/variants/Titan.js index 9e651b0d..53420e83 100644 --- a/client/src/variants/Titan.js +++ b/client/src/variants/Titan.js @@ -185,7 +185,7 @@ export class TitanRules extends ChessRules { return moves; } - hoverHighlight(x, y) { + hoverHighlight([x, y]) { const c = this.turn; return ( this.movesCount <= 3 && @@ -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) )