projects
/
xogo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix Teleport bug on subturn 2
[xogo.git]
/
base_rules.js
diff --git
a/base_rules.js
b/base_rules.js
index
5d91c72
..
2b2ecfa
100644
(file)
--- a/
base_rules.js
+++ b/
base_rules.js
@@
-1238,6
+1238,8
@@
export default class ChessRules {
// All possible moves from selected square
getPotentialMovesFrom(sq, color) {
+ if (this.subTurnTeleport == 2)
+ return [];
if (typeof sq[0] == "string")
return this.getDropMovesFrom(sq);
if (this.isImmobilized(sq))