From 4096af856b4c371828f0fe6ca80f937d3e094813 Mon Sep 17 00:00:00 2001 From: Rahul Gandharva Date: Thu, 21 Oct 2021 19:23:13 +1100 Subject: [PATCH] Ending attack automatically in checkers works better now. --- Scripts/Levels/Level Main.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/Levels/Level Main.gd b/Scripts/Levels/Level Main.gd index 8a86dd9..277dabd 100644 --- a/Scripts/Levels/Level Main.gd +++ b/Scripts/Levels/Level Main.gd @@ -329,7 +329,7 @@ remote func update_player_status(color, attacking): else: curr_player_status.texture = load("res://Assets/shield.svg") -func change_to_reinforcement(surity_bool=false): +remote func change_to_reinforcement(surity_bool=false): # When the surity bool is true, you get to skip the confirmation menu if not surity_bool: show_confirmation_menu("You have an attack left.\nAre you sure you want to end attacks?",\ @@ -382,7 +382,7 @@ func change_to_attack(surity_bool=false): # Automatically end the attack phase if in checkers mode and no attacks are available if "checkers" in game_modes and is_attack_over(): - change_to_reinforcement(true) + rpc_id(curr_player.network_id, "change_to_reinforcement", true) remote func notify(): $Notification.play()