From: Benjamin Auder Date: Mon, 22 Feb 2021 09:19:04 +0000 (+0100) Subject: Fix Pandemonium Dragon + Horse attacks X-Git-Url: https://git.auder.net/game/current/bundles/framework/css/body.css?a=commitdiff_plain;h=d9ed47ad0608d5891a448ca12048d02cea7ea14c;p=vchess.git Fix Pandemonium Dragon + Horse attacks --- diff --git a/client/src/variants/Pandemonium.js b/client/src/variants/Pandemonium.js index 63101e91..e3b8c191 100644 --- a/client/src/variants/Pandemonium.js +++ b/client/src/variants/Pandemonium.js @@ -590,7 +590,7 @@ export class PandemoniumRules extends ChessRules { isAttackedByHorse(sq, color) { return ( - super.isAttackedBySlideNJump(sq, color, V.steps[V.BISHOP], V.HORSE) || + super.isAttackedBySlideNJump(sq, color, V.HORSE, V.steps[V.BISHOP]) || super.isAttackedBySlideNJump( sq, color, V.HORSE, V.steps[V.ROOK], "oneStep") ); @@ -598,7 +598,7 @@ export class PandemoniumRules extends ChessRules { isAttackedByDragon(sq, color) { return ( - super.isAttackedBySlideNJump(sq, color, V.steps[V.ROOK], V.DRAGON) || + super.isAttackedBySlideNJump(sq, color, V.DRAGON, V.steps[V.ROOK]) || super.isAttackedBySlideNJump( sq, color, V.DRAGON, V.steps[V.BISHOP], "oneStep") );