X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FAtomic.js;h=9675c58a211639f269e17bc431fc7bd615534344;hp=90089e8b063f2d9fb5d9f8cf4b2d754ee77e80fa;hb=af34341d92d47d14f396e7f4adb81f2a7e9d9a61;hpb=fef153df51fe60a5af4c5b2a05e0b1177187bf62 diff --git a/client/src/variants/Atomic.js b/client/src/variants/Atomic.js index 90089e8b..9675c58a 100644 --- a/client/src/variants/Atomic.js +++ b/client/src/variants/Atomic.js @@ -127,7 +127,8 @@ export class AtomicRules extends ChessRules { return res; } - getCheckSquares(color) { + getCheckSquares() { + const color = this.turn; let res = []; if ( this.kingPos[color][0] >= 0 && //king might have exploded