mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-02-20 19:23:38 +01:00
Fix Flame Burst crashing the game
This commit is contained in:
parent
01ee73adf6
commit
1b7493e47a
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user