diff --git a/client/scripts/main.gd b/client/scripts/main.gd index 156ae98..ded0a9e 100644 --- a/client/scripts/main.gd +++ b/client/scripts/main.gd @@ -379,11 +379,9 @@ func _on_cast_result_received(accepted: bool, reason_code: String) -> void: return if accepted: _cast_feedback_label.text = "Cast: accepted" - if ( - is_instance_valid(_cooldown_client) - and _cooldown_client.has_method("request_sync_from_server") - ): - _cooldown_client.call("request_sync_from_server") + if is_instance_valid(_cooldown_client): + if _cooldown_client.has_method("request_sync_from_server"): + _cooldown_client.call("request_sync_from_server") return var rc := reason_code.strip_edges() if rc.is_empty(): diff --git a/client/test/cooldown_state_test.gd b/client/test/cooldown_state_test.gd index 6a42c14..66adabf 100644 --- a/client/test/cooldown_state_test.gd +++ b/client/test/cooldown_state_test.gd @@ -1,5 +1,6 @@ extends GdUnitTestSuite +## Covers [code]cooldown_state.gd[/code] snapshot math (NEO-32); paired with [code]main.gd[/code] wiring changes. const CooldownStateScript := preload("res://scripts/cooldown_state.gd")