projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Suction (no)promotions
[vchess.git]
/
client
/
src
/
variants
/
Suction.js
diff --git
a/client/src/variants/Suction.js
b/client/src/variants/Suction.js
index
4ddffbe
..
c3277e9
100644
(file)
--- a/
client/src/variants/Suction.js
+++ b/
client/src/variants/Suction.js
@@
-1,6
+1,15
@@
import { ChessRules, PiPo, Move } from "@/base_rules";
export class SuctionRules extends ChessRules {
import { ChessRules, PiPo, Move } from "@/base_rules";
export class SuctionRules extends ChessRules {
+ static get PawnSpecs() {
+ return Object.assign(
+ {},
+ ChessRules.PawnSpecs,
+ // No promotions:
+ { promotions: [V.PAWN] }
+ );
+ }
+
static get HasFlags() {
return false;
}
static get HasFlags() {
return false;
}