X-Git-Url: https://git.auder.net/?p=xogo.git;a=blobdiff_plain;f=variants%2FAtomic%2Fclass.js;h=924d2226e640224a60fa1b848227cea851c3e234;hp=b0662d3aeaf807c50dbf68104c671d875e6df66d;hb=639afc982f9c3be3b4748ef10e8ef771a295712f;hpb=449d72e350051d3ddb86a360c7bb4a4327cbeb75 diff --git a/variants/Atomic/class.js b/variants/Atomic/class.js index b0662d3..924d222 100644 --- a/variants/Atomic/class.js +++ b/variants/Atomic/class.js @@ -30,7 +30,7 @@ export default class AtomicRules extends ChessRules { canIplay(x, y) { if (this.options["rempawn"] && this.movesCount == 0) - return (this.turn == side && this.getPiece(x, y) == "p"); + return (this.playerColor == this.turn && this.getPiece(x, y) == "p"); return super.canIplay(x, y); }