@@ 166,6 166,21 @@ fn parse_action(action: &Action, game: &Game, game_status: &mut GameStatus) {
Command::StartTurn {} => {
// set the target to the play phase
target.state = PlayerState::PlayPhase;
+
+ let draw_action = Action::new(
+ &game.id,
+ &action.target,
+ &action.target,
+ &Command::Draw {
+ amount: 4,
+ },
+ seed_gen!(),
+ );
+ game_status
+ .actions
+ .insert(action_pos + 1, draw_action.clone());
+
+ parse_action(&draw_action, game, game_status);
}
Command::ChangePlayerState { state } => {
target.state = *state;