mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 03:34:15 +01:00
Fix Z-Moves softlocking when the z move effect was not used (#3108)
This commit is contained in:
parent
1980a115b4
commit
cf9b933a5f
@ -628,6 +628,10 @@ void SetZEffect(void)
|
||||
BattleScriptPush(gBattlescriptCurrInstr + Z_EFFECT_BS_LENGTH);
|
||||
gBattlescriptCurrInstr = BattleScript_ZEffectPrintString;
|
||||
}
|
||||
else
|
||||
{
|
||||
gBattlescriptCurrInstr += Z_EFFECT_BS_LENGTH;
|
||||
}
|
||||
break;
|
||||
case Z_EFFECT_BOOST_CRITS:
|
||||
if (!(gBattleMons[gBattlerAttacker].status2 & STATUS2_FOCUS_ENERGY))
|
||||
@ -637,6 +641,10 @@ void SetZEffect(void)
|
||||
BattleScriptPush(gBattlescriptCurrInstr + Z_EFFECT_BS_LENGTH);
|
||||
gBattlescriptCurrInstr = BattleScript_ZEffectPrintString;
|
||||
}
|
||||
else
|
||||
{
|
||||
gBattlescriptCurrInstr += Z_EFFECT_BS_LENGTH;
|
||||
}
|
||||
break;
|
||||
case Z_EFFECT_FOLLOW_ME:
|
||||
gSideTimers[GetBattlerSide(gBattlerAttacker)].followmeTimer = 1;
|
||||
@ -653,6 +661,10 @@ void SetZEffect(void)
|
||||
BattleScriptPush(gBattlescriptCurrInstr + Z_EFFECT_BS_LENGTH);
|
||||
gBattlescriptCurrInstr = BattleScript_RecoverHPZMove;
|
||||
}
|
||||
else
|
||||
{
|
||||
gBattlescriptCurrInstr += Z_EFFECT_BS_LENGTH;
|
||||
}
|
||||
break;
|
||||
case Z_EFFECT_RESTORE_REPLACEMENT_HP:
|
||||
gBattleStruct->zmove.healReplacement = TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user