projects
/
xogo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7d0920
)
Fix Teleport bug on subturn 2
author
Benjamin Auder
<benjamin.auder@somewhere>
Mon, 2 May 2022 12:42:05 +0000
(14:42 +0200)
committer
Benjamin Auder
<benjamin.auder@somewhere>
Mon, 2 May 2022 12:42:05 +0000
(14:42 +0200)
base_rules.js
patch
|
blob
|
blame
|
history
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))