Skip to content

Commit

Permalink
Merge branch '131-bar-fight-does-not-correctly-check-if-player-s-heal…
Browse files Browse the repository at this point in the history
…th-is-above-attack-amount' into 'master'

Resolve "Bar fight does not correctly check if player's health is above attack amount"

Closes #131

See merge request mjc/gameboygamedev!94-e 
Original/build commit ID: 7002c89861f5751c9bb5622ef4ad37817bf874e2
  • Loading branch information
MatthewJohn committed Apr 9, 2023
2 parents 09fc896 + 9c0f2ef commit 5d44737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bar_fight.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ void bf_perform_enemy_attack(bar_fight_state_t* bar_fight_state)
}

// If player is killed, set game HP and set minigame to end
if (game_state.hp > enemy_attack_points || game_state.hp == enemy_attack_points)
if (game_state.hp < enemy_attack_points || game_state.hp == enemy_attack_points)
{
game_state.hp = 0U;
bar_fight_state->in_game = 0U;
Expand Down

0 comments on commit 5d44737

Please sign in to comment.