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")
);
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")
);