Skip to content

Commit

Permalink
Ending attack automatically in checkers works better now.
Browse files Browse the repository at this point in the history
  • Loading branch information
ra314 committed Oct 21, 2021
1 parent d274831 commit 4096af8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Scripts/Levels/Level Main.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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?",\
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 4096af8

Please sign in to comment.