projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Screen variant: allow any setup even if king captured
[vchess.git]
/
client
/
src
/
variants
/
Takenmake.js
diff --git
a/client/src/variants/Takenmake.js
b/client/src/variants/Takenmake.js
index
5c0ac08
..
9549c2a
100644
(file)
--- a/
client/src/variants/Takenmake.js
+++ b/
client/src/variants/Takenmake.js
@@
-23,7
+23,7
@@
export class TakenmakeRules extends ChessRules {
switch (asA || piece) {
case V.PAWN:
if (!asA || piece == V.PAWN)
switch (asA || piece) {
case V.PAWN:
if (!asA || piece == V.PAWN)
- moves =
this
.getPotentialPawnMoves([x, y]);
+ moves =
super
.getPotentialPawnMoves([x, y]);
else {
// Special case: we don't want promotion, since just moving like
// a pawn, but I'm in fact not a pawn :)
else {
// Special case: we don't want promotion, since just moving like
// a pawn, but I'm in fact not a pawn :)