X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FCwda.js;h=9142d4684b80ec02cea950a150034f45bc8e0383;hp=c0d36edde1c5285785122379d9479afba3ac37b2;hb=b2f43cc30477acd48ab83ed8b792dd9521dab502;hpb=4313762da3237b04f204e121a20cab3ba7bb5dd2 diff --git a/client/src/variants/Cwda.js b/client/src/variants/Cwda.js index c0d36edd..9142d468 100644 --- a/client/src/variants/Cwda.js +++ b/client/src/variants/Cwda.js @@ -514,6 +514,20 @@ export class CwdaRules extends ChessRules { ); } + // [HACK] So that the function above works also on Fide army: + isAttackedByF_rook(sq, color) { + return super.isAttackedByRook(sq, color); + } + isAttackedByF_knight(sq, color) { + return super.isAttackedByKnight(sq, color); + } + isAttackedByF_bishop(sq, color) { + return super.isAttackedByBishop(sq, color); + } + isAttackedByF_queen(sq, color) { + return super.isAttackedByQueen(sq, color); + } + static get VALUES() { return Object.assign( {