Skip to content

Commit c4c2745

Browse files
authored
fix: CAT BALOU card has bug when no cards on hand (#170)
1 parent 4d5f832 commit c4c2745

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/core/player.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,18 @@ Card* computer_player_take(Game* game, i32 player_id, i32 target_id) {
282282
Card* x = target->weapon;
283283
target->weapon = NULL;
284284
return x;
285+
} else if (target->scope != NULL) {
286+
Card* x = target->scope;
287+
target->scope = NULL;
288+
return x;
289+
} else if (target->dynamite != NULL) {
290+
Card* x = target->dynamite;
291+
target->dynamite = NULL;
292+
return x;
293+
} else if (target->jail != NULL) {
294+
Card* x = target->jail;
295+
target->jail = NULL;
296+
return x;
285297
}
286298
}
287299
if (target->hands->size == 1 && target->character->type == Suzy_Lafayette) {

0 commit comments

Comments
 (0)