Fix Flame Burst crashing the game

This commit is contained in:
DizzyEggg 2019-05-23 10:02:04 +02:00
parent 01ee73adf6
commit 1b7493e47a
2 changed files with 8 additions and 5 deletions

View File

@ -737,12 +737,16 @@ BattleScript_EffectFlameBurst:
goto BattleScript_EffectHit
BattleScript_MoveEffectFlameBurst::
tryfaintmon BS_TARGET, FALSE, NULL
printstring STRINGID_BURSTINGFLAMESHIT
waitmessage 0x40
healthbarupdate BS_SCRIPTING
datahpupdate BS_SCRIPTING
tryfaintmon BS_SCRIPTING, FALSE, NULL
return
savetarget
copybyte gBattlerTarget, sBATTLER
healthbarupdate BS_TARGET
datahpupdate BS_TARGET
tryfaintmon BS_TARGET, FALSE, NULL
restoretarget
goto BattleScript_MoveEnd
BattleScript_EffectPowerTrick:
attackcanceler

View File

@ -2794,7 +2794,6 @@ void SetMoveEffect(bool32 primary, u32 certain)
gBattleMoveDamage = gBattleMons[BATTLE_PARTNER(gBattlerTarget)].hp / 16;
if (gBattleMoveDamage == 0)
gBattleMoveDamage = 1;
BattleScriptPush(gBattlescriptCurrInstr + 1);
gBattlescriptCurrInstr = BattleScript_MoveEffectFlameBurst;
}
break;