projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Pandemonium Dragon + Horse attacks
[vchess.git]
/
client
/
src
/
variants
/
Pacosako.js
diff --git
a/client/src/variants/Pacosako.js
b/client/src/variants/Pacosako.js
index
0b27be4
..
4745f63
100644
(file)
--- a/
client/src/variants/Pacosako.js
+++ b/
client/src/variants/Pacosako.js
@@
-372,7
+372,7
@@
export class PacosakoRules extends ChessRules {
}
let baseMoves = [];
const c = this.turn;
}
let baseMoves = [];
const c = this.turn;
- switch (piece
|| this.getPiece(x, y)
) {
+ switch (piece) {
case V.PAWN: {
const firstRank = (c == 'w' ? 7 : 0);
baseMoves = this.getPotentialPawnMoves([x, y]).filter(m => {
case V.PAWN: {
const firstRank = (c == 'w' ? 7 : 0);
baseMoves = this.getPotentialPawnMoves([x, y]).filter(m => {