mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-27 20:24:18 +01:00
Fix Burn Up
Now works properly with and without Parental Bond. It wasn't broken before, but its interaction with Parental Bond was.
This commit is contained in:
parent
e407883b58
commit
6232b046b1
@ -814,27 +814,10 @@ BattleScript_EffectBurnUp:
|
|||||||
ppreduce
|
ppreduce
|
||||||
jumpiftype BS_ATTACKER, TYPE_FIRE, BattleScript_BurnUpWorks
|
jumpiftype BS_ATTACKER, TYPE_FIRE, BattleScript_BurnUpWorks
|
||||||
goto BattleScript_ButItFailed
|
goto BattleScript_ButItFailed
|
||||||
|
|
||||||
BattleScript_BurnUpWorks:
|
BattleScript_BurnUpWorks:
|
||||||
accuracycheck BattleScript_MoveMissedPause, ACC_CURR_MOVE
|
setmoveeffect MOVE_EFFECT_BURN_UP | MOVE_EFFECT_CERTAIN
|
||||||
critcalc
|
goto BattleScript_EffectHit
|
||||||
damagecalc
|
|
||||||
adjustdamage
|
|
||||||
attackanimation
|
|
||||||
waitanimation
|
|
||||||
effectivenesssound
|
|
||||||
hitanimation BS_TARGET
|
|
||||||
waitstate
|
|
||||||
healthbarupdate BS_TARGET
|
|
||||||
datahpupdate BS_TARGET
|
|
||||||
critmessage
|
|
||||||
waitmessage B_WAIT_TIME_LONG
|
|
||||||
resultmessage
|
|
||||||
waitmessage B_WAIT_TIME_LONG
|
|
||||||
losetype BS_ATTACKER, TYPE_FIRE
|
|
||||||
printstring STRINGID_ATTACKERLOSTFIRETYPE
|
|
||||||
waitmessage B_WAIT_TIME_LONG
|
|
||||||
tryfaintmon BS_TARGET, FALSE, NULL
|
|
||||||
goto BattleScript_MoveEnd
|
|
||||||
|
|
||||||
BattleScript_BurnUpRemoveType::
|
BattleScript_BurnUpRemoveType::
|
||||||
losetype BS_ATTACKER, TYPE_FIRE
|
losetype BS_ATTACKER, TYPE_FIRE
|
||||||
|
@ -358,8 +358,9 @@
|
|||||||
#define MOVE_EFFECT_BUG_BITE 0x45
|
#define MOVE_EFFECT_BUG_BITE 0x45
|
||||||
#define MOVE_EFFECT_RECOIL_HP_25 0x46
|
#define MOVE_EFFECT_RECOIL_HP_25 0x46
|
||||||
#define MOVE_EFFECT_RELIC_SONG 0x47
|
#define MOVE_EFFECT_RELIC_SONG 0x47
|
||||||
|
#define MOVE_EFFECT_BURN_UP 0x48
|
||||||
|
|
||||||
#define NUM_MOVE_EFFECTS 0x48
|
#define NUM_MOVE_EFFECTS 0x49
|
||||||
|
|
||||||
#define MOVE_EFFECT_AFFECTS_USER 0x4000
|
#define MOVE_EFFECT_AFFECTS_USER 0x4000
|
||||||
#define MOVE_EFFECT_CERTAIN 0x8000
|
#define MOVE_EFFECT_CERTAIN 0x8000
|
||||||
|
@ -3443,6 +3443,11 @@ void SetMoveEffect(bool32 primary, u32 certain)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case MOVE_EFFECT_BURN_UP:
|
||||||
|
// This seems unnecessary but is done to make it work properly with Parental Bond
|
||||||
|
BattleScriptPush(gBattlescriptCurrInstr + 1);
|
||||||
|
gBattlescriptCurrInstr = BattleScript_BurnUpRemoveType;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user