Skip to content

Commit

Permalink
Mon fainting to hazards is a 0HKO
Browse files Browse the repository at this point in the history
  • Loading branch information
Pawkkie committed Sep 12, 2024
1 parent 5d8adb8 commit 446f738
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/battle_ai_switch_items.c
Original file line number Diff line number Diff line change
Expand Up @@ -1619,7 +1619,7 @@ static u32 GetSwitchinHitsToKO(s32 damageTaken, u32 battler)

// Mon fainted to hazards
if (startingHP == 0)
return 1;
return 0;

// Find hits to KO
while (currentHP > 0)
Expand Down

0 comments on commit 446f738

Please sign in to comment.