Skip to content

Commit

Permalink
fix: CAT BALOU has no effect when player has barrel or mustang (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
howard9199 authored Mar 3, 2023
1 parent c4c2745 commit 99d0e10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/player.h
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,11 @@ Card* computer_player_take(Game* game, i32 player_id, i32 target_id) {
Player* target = game->players->get(game->players, target_id);
usleep(1000 * 1000 / speed);
if (El_Gringo_active != true) {
if (target->barrel && !player->barrel) {
if (target->barrel != NULL) {
Card* x = target->barrel;
target->barrel = NULL;
return x;
} else if (target->mustang && !player->mustang) {
} else if (target->mustang != NULL) {
Card* x = target->mustang;
target->mustang = NULL;
return x;
Expand Down

3 comments on commit 99d0e10

@Sawsoewin
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Sawsoewin
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1

@Sawsoewin
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

99d0e10 now

Please sign in to comment.