From b97ebd793eb17032f3929f307dfe644b17714619 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Sat, 13 Apr 2024 21:50:12 +0700 Subject: bare bones ai, softlock issues --- Scripts/NumberArea.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Scripts/NumberArea.gd') 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(): -- cgit v1.2.3