Fix bug where player doesn't get to choose a target
This commit is contained in:
parent
f9e7b8a3cd
commit
26f7ab5653
6
game.c
6
game.c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user