From: Benjamin Auder Date: Tue, 16 Feb 2021 22:33:55 +0000 (+0100) Subject: Fix Pandemonium isAttackedBy() X-Git-Url: https://git.auder.net/%7B%7B%20asset%28%27mixstore/css/static/current/git-logo.png?a=commitdiff_plain;h=b2511e7ed206464ec369920277f474289c33ec66;p=vchess.git Fix Pandemonium isAttackedBy() --- diff --git a/client/src/variants/Pandemonium.js b/client/src/variants/Pandemonium.js index 3997e2b0..af87b270 100644 --- a/client/src/variants/Pandemonium.js +++ b/client/src/variants/Pandemonium.js @@ -542,7 +542,7 @@ export class PandemoniumRules extends ChessRules { const steps = V.steps[V.KNIGHT].concat(V.steps[V.ROOK]).concat(V.steps[V.BISHOP]); return ( - super.isAttackedBySlideNJump(sq, color, steps, V.SCEPTER, "oneStep") + super.isAttackedBySlideNJump(sq, color, V.SCEPTER, steps, "oneStep") ); } @@ -550,7 +550,7 @@ export class PandemoniumRules extends ChessRules { return ( super.isAttackedBySlideNJump(sq, color, V.steps[V.BISHOP], V.HORSE) || super.isAttackedBySlideNJump( - sq, color, V.steps[V.ROOK], V.HORSE, "oneStep") + sq, color, V.HORSE, V.steps[V.ROOK], "oneStep") ); } @@ -558,7 +558,7 @@ export class PandemoniumRules extends ChessRules { return ( super.isAttackedBySlideNJump(sq, color, V.steps[V.ROOK], V.DRAGON) || super.isAttackedBySlideNJump( - sq, color, V.steps[V.BISHOP], V.DRAGON, "oneStep") + sq, color, V.DRAGON, V.steps[V.BISHOP], "oneStep") ); }