Skip to content

Commit

Permalink
Attack phase ends immediately if in checkers mode and no attacks avai…
Browse files Browse the repository at this point in the history
…lable.
  • Loading branch information
ra314 committed Oct 21, 2021
1 parent ede6dae commit d274831
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Scripts/Levels/Level Main.gd
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,10 @@ func change_to_attack(surity_bool=false):

# Updating player status
update_player_status(curr_player.color, true)

# 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)

remote func notify():
$Notification.play()
Expand Down

0 comments on commit d274831

Please sign in to comment.