X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FAbsorption.js;h=293238dbd8790672f33a1790e73c92900236c494;hp=33c8351789925a1e71a906a41c8d49168e8ccdd4;hb=4313762da3237b04f204e121a20cab3ba7bb5dd2;hpb=cee75a57d2f4f89c89d64cefbab55d839a238ed9 diff --git a/client/src/variants/Absorption.js b/client/src/variants/Absorption.js index 33c83517..293238db 100644 --- a/client/src/variants/Absorption.js +++ b/client/src/variants/Absorption.js @@ -116,7 +116,7 @@ export class AbsorptionRules extends ChessRules { return ( this.isAttackedBySlideNJump(sq, color, V.BN, V.steps[V.BISHOP]) || this.isAttackedBySlideNJump( - sq, color, V.BN, V.steps[V.KNIGHT], "oneStep") + sq, color, V.BN, V.steps[V.KNIGHT], 1) ); } @@ -124,7 +124,7 @@ export class AbsorptionRules extends ChessRules { return ( this.isAttackedBySlideNJump(sq, color, V.RN, V.steps[V.ROOK]) || this.isAttackedBySlideNJump( - sq, color, V.RN, V.steps[V.KNIGHT], "oneStep") + sq, color, V.RN, V.steps[V.KNIGHT], 1) ); } @@ -133,7 +133,7 @@ export class AbsorptionRules extends ChessRules { this.isAttackedBySlideNJump( sq, color, V.QN, V.steps[V.BISHOP].concat(V.steps[V.ROOK])) || this.isAttackedBySlideNJump( - sq, color, V.QN, V.steps[V.KNIGHT], "oneStep") + sq, color, V.QN, V.steps[V.KNIGHT], 1) ); }