Skip to content

Commit

Permalink
Fix using Population Dice with Loaded Dice printing garbage text (rh-…
Browse files Browse the repository at this point in the history
  • Loading branch information
kittenchilly authored Aug 17, 2024
1 parent 8607a7f commit a958e61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/battle_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -3641,13 +3641,14 @@ u8 AtkCanceller_UnableToUseMove(u32 moveType)
else
{
gMultiHitCounter = gMovesInfo[gCurrentMove].strikeCount;
PREPARE_BYTE_NUMBER_BUFFER(gBattleScripting.multihitString, 3, 0)

if (gMovesInfo[gCurrentMove].effect == EFFECT_DRAGON_DARTS
&& CanTargetPartner(gBattlerAttacker, gBattlerTarget)
&& TargetFullyImmuneToCurrMove(gBattlerAttacker, gBattlerTarget))
gBattlerTarget = BATTLE_PARTNER(gBattlerTarget);
}

PREPARE_BYTE_NUMBER_BUFFER(gBattleScripting.multihitString, 3, 0)
}
else if (B_BEAT_UP >= GEN_5 && gMovesInfo[gCurrentMove].effect == EFFECT_BEAT_UP)
{
Expand Down

0 comments on commit a958e61

Please sign in to comment.