summaryrefslogtreecommitdiff
path: root/Scripts/NumberArea.gd
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2024-04-13 21:50:12 +0700
committeraltaf-creator <dev@altafcreator.com>2024-04-13 21:50:12 +0700
commitb97ebd793eb17032f3929f307dfe644b17714619 (patch)
tree03a558e77757112a6fddce45dbbcc0139df479c2 /Scripts/NumberArea.gd
parentc5a806528af8a4de5f903d26cd33edb7e0bb6597 (diff)
bare bones ai, softlock issues
Diffstat (limited to 'Scripts/NumberArea.gd')
-rw-r--r--Scripts/NumberArea.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/Scripts/NumberArea.gd b/Scripts/NumberArea.gd
index 443fada..78fc53f 100644
--- a/Scripts/NumberArea.gd
+++ b/Scripts/NumberArea.gd
@@ -9,7 +9,7 @@ func _on_mouse_entered():
if !parent.do_scanning:
return
- if GlobalVariables.is_snapping && GlobalVariables.player.legal:
+ if GlobalVariables.is_snapping && GlobalVariables.player.legal && GlobalVariables.gameloop.current_turns < GlobalVariables.gameloop.turns:
GlobalVariables.player.target = parent
func _on_mouse_exited():