|
@@ -104,7 +104,9 @@ func _ready() -> void:
|
|
|
)
|
|
|
|
|
|
func _process(_delta: float) -> void:
|
|
|
- if Input.is_action_pressed("ui_cancel"):
|
|
|
+ var intro_visible: bool = get_tree().get_first_node_in_group("intro") != null
|
|
|
+
|
|
|
+ if Input.is_action_pressed("ui_cancel") && not intro_visible:
|
|
|
go_to_main_menu()
|
|
|
if phase == Phase.PHASE_COMBAT:
|
|
|
if get_foes().is_empty() and health_bar.health != 0:
|