X-Git-Url: https://git.auder.net/pieces/Cwda/n_black_rook.svg?a=blobdiff_plain;f=variants%2FAllmate%2Fclass.js;h=5b237c0f4cb53ee45cab32e6eccce3b05c3b9646;hb=10c9010b3b04915e132b6b3820f2f19c9ea6dcf0;hp=e46f384ac0ff58fc3d3fd14966a3f49bc1bc91d2;hpb=e7d409fc03a8cd8459a2b41f9fef51c0a3fb0d6d;p=xogo.git diff --git a/variants/Allmate/class.js b/variants/Allmate/class.js index e46f384..5b237c0 100644 --- a/variants/Allmate/class.js +++ b/variants/Allmate/class.js @@ -59,7 +59,7 @@ export default class AllmateRules extends ChessRules { // is piece on square x,y mated by color? isMated(x, y, color) { const myColor = C.GetOppCol(color); - if (!this.underCheck([x, y], color)) + if (!super.underAttack([x, y], color)) return false; for (let i=0; i