Skip to content

Commit

Permalink
wrong battler id
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexOn1ine committed Jan 1, 2025
1 parent 412a589 commit c434fc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/battle_script_commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -2580,7 +2580,7 @@ static void Cmd_datahpupdate(void)
{
if (gSpecialStatuses[battler].shellBellDmg == 0)
gSpecialStatuses[battler].shellBellDmg = gDisableStructs[battler].substituteHP;
gBattleStruct->moveDamage[gBattlerTarget] = gDisableStructs[battler].substituteHP;
gBattleStruct->moveDamage[battler] = gDisableStructs[battler].substituteHP;
gDisableStructs[battler].substituteHP = 0;
}
// check substitute fading
Expand Down

0 comments on commit c434fc7

Please sign in to comment.