X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=variants%2FAllmate%2Fclass.js;h=9493e6c30e4fc0f59cd7794859518182acc404d7;hb=727f2e558776b14a29cb1552a05a88cc9a4b0297;hp=e491e6d4438138f5b2b42190ba749e0ce526d1d8;hpb=bc97fdd1302473b774cfb19e65dc3ed3ed388901;p=xogo.git diff --git a/variants/Allmate/class.js b/variants/Allmate/class.js index e491e6d..9493e6c 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.GetOppTurn(color); - if (!super.underAttack([x, y], color)) + if (!super.underAttack([x, y], [color])) return false; for (let i=0; i