X-Git-Url: https://git.auder.net/?p=xogo.git;a=blobdiff_plain;f=base_rules.js;h=2b2ecfa3aa685fe18f8444d04899a7e5e81da389;hp=5d91c7239ddae9c73cbec600049de902cc110d9e;hb=8b301184ec7b90b7595f030457d5d2d38a44bcbc;hpb=a7d092011535bc7da231c2c254ec5c936b62cd71 diff --git a/base_rules.js b/base_rules.js index 5d91c72..2b2ecfa 100644 --- 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))