Fix multihit moves vs damage reducing berries
The extra waitmessage command is ugly but appears to be needed - if it's moved before the printstring, the message isn't displayed long enough on single hit moves.
This commit is contained in:
parent
0cd7f3ffcd
commit
7d3980de58
2 changed files with 10 additions and 0 deletions
|
@ -7519,6 +7519,7 @@ BattleScript_BerryReduceDmg::
|
|||
BattleScript_PrintBerryReduceString::
|
||||
waitmessage B_WAIT_TIME_LONG
|
||||
printstring STRINGID_BERRYDMGREDUCES
|
||||
waitmessage B_WAIT_TIME_LONG
|
||||
return
|
||||
|
||||
BattleScript_BerryCureConfusionEnd2::
|
||||
|
|
|
@ -1967,6 +1967,15 @@ static void Cmd_multihitresultmessage(void)
|
|||
}
|
||||
}
|
||||
gBattlescriptCurrInstr++;
|
||||
|
||||
// Print berry reducing message after result message.
|
||||
if (gSpecialStatuses[gBattlerTarget].berryReduced
|
||||
&& !(gMoveResultFlags & MOVE_RESULT_NO_EFFECT))
|
||||
{
|
||||
gSpecialStatuses[gBattlerTarget].berryReduced = 0;
|
||||
BattleScriptPushCursor();
|
||||
gBattlescriptCurrInstr = BattleScript_PrintBerryReduceString;
|
||||
}
|
||||
}
|
||||
|
||||
static void Cmd_attackanimation(void)
|
||||
|
|
Loading…
Reference in a new issue