From 8b301184ec7b90b7595f030457d5d2d38a44bcbc Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Mon, 2 May 2022 14:42:05 +0200
Subject: [PATCH] Fix Teleport bug on subturn 2

---
 base_rules.js | 2 ++
 1 file changed, 2 insertions(+)

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))
-- 
2.44.0