projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Spartan Chess
[vchess.git]
/
client
/
src
/
variants
/
Teleport.js
diff --git
a/client/src/variants/Teleport.js
b/client/src/variants/Teleport.js
index
52c7fd6
..
82528c1
100644
(file)
--- a/
client/src/variants/Teleport.js
+++ b/
client/src/variants/Teleport.js
@@
-19,6
+19,11
@@
export class TeleportRules extends ChessRules {
return this.subTurn == 1;
}
return this.subTurn == 1;
}
+ canIplay(side, [x, y]) {
+ if (this.subTurn == 2) return (this.board[x][y] == V.EMPTY);
+ return super.canIplay(side, [x, y]);
+ }
+
getPPpath(m) {
if (
m.vanish.length == 2 &&
getPPpath(m) {
if (
m.vanish.length == 2 &&