X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=variants%2FAllmate%2Fclass.js;h=8d3164952aa4f1ae44ededb2d74d7f9e72a0ae6a;hb=af9c9be34f416500f9e025e28f39fe89a8c7c345;hp=8c5a92cae2cec6134bdf8fba398e928181950aeb;hpb=5f08c59b29c2173cc8b2df1a3799ee971a14e691;p=xogo.git diff --git a/variants/Allmate/class.js b/variants/Allmate/class.js index 8c5a92c..8d31649 100644 --- a/variants/Allmate/class.js +++ b/variants/Allmate/class.js @@ -18,9 +18,6 @@ export default class AllmateRules extends ChessRules { get hasEnpassant() { return false; } - get hasMoveStack() { - return true; - } setOtherVariables(fenParsed) { super.setOtherVariables(fenParsed); @@ -62,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