diff options
author | altaf-creator <dev@altafcreator.com> | 2024-04-13 21:50:12 +0700 |
---|---|---|
committer | altaf-creator <dev@altafcreator.com> | 2024-04-13 21:50:12 +0700 |
commit | b97ebd793eb17032f3929f307dfe644b17714619 (patch) | |
tree | 03a558e77757112a6fddce45dbbcc0139df479c2 /Scripts/NumberArea.gd | |
parent | c5a806528af8a4de5f903d26cd33edb7e0bb6597 (diff) |
bare bones ai, softlock issues
Diffstat (limited to 'Scripts/NumberArea.gd')
-rw-r--r-- | Scripts/NumberArea.gd | 2 |
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(): |