Fix bug where player doesn't get to choose a target

This commit is contained in:
Bill Rossi 2025-02-22 13:58:05 -05:00
parent f9e7b8a3cd
commit 26f7ab5653

6
game.c
View File

@ -319,8 +319,8 @@ void run_frame_initializing(Game *g) {
add_to_hand(&g->deck, c);
}
//shuffle_hand(&g->deck);
order_deck(&g->deck);
shuffle_hand(&g->deck);
// order_deck(&g->deck);
kan_points_string(g, g->player.points, g->player.points_string);
kan_points_string(g, g->right.points, g->right.points_string);
@ -502,6 +502,8 @@ void run_frame_choosing_target_from_deck(Game *g) {
if (g->current_play_target) {
capture_card_from_field(g, top_card, g->current_play_target, &g->deck, to_hand);
g->state = GAME_STATE_CHECKING_FOR_NEW_DEKIYAKU;
g->current_play_from_hand = NULL;
g->current_play_target = NULL;
}
} else {
// TODO: better AI