Skip to content

Commit 99d0e10

Browse files
authored
fix: CAT BALOU has no effect when player has barrel or mustang (#171)
1 parent c4c2745 commit 99d0e10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/player.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,11 @@ Card* computer_player_take(Game* game, i32 player_id, i32 target_id) {
270270
Player* target = game->players->get(game->players, target_id);
271271
usleep(1000 * 1000 / speed);
272272
if (El_Gringo_active != true) {
273-
if (target->barrel && !player->barrel) {
273+
if (target->barrel != NULL) {
274274
Card* x = target->barrel;
275275
target->barrel = NULL;
276276
return x;
277-
} else if (target->mustang && !player->mustang) {
277+
} else if (target->mustang != NULL) {
278278
Card* x = target->mustang;
279279
target->mustang = NULL;
280280
return x;

0 commit comments

Comments
 (0)