diff --git a/xtrn/chess/pieces.js b/xtrn/chess/pieces.js index 9347f81825699680fd13366816b3589ec4d61287..116255bcc864075a88cce208cef59b3e71ad1f61 100644 --- a/xtrn/chess/pieces.js +++ b/xtrn/chess/pieces.js @@ -21,6 +21,14 @@ Piece.prototype={ return false; if(brd.check(this.colour)) return false; + if(this.board.movenum % 1) { + if(this.colour == COLOUR.white) + return false; + } + else { + if(this.colour == COLOUR.black) + return false; + } if(update) return this.board._domove(this, tgtpos); },