Streamline tryheal macros (#7830)
This commit is contained in:
parent
ad7c944f9f
commit
6267cef403
@ -696,10 +696,10 @@
|
|||||||
.4byte \jumpInstr
|
.4byte \jumpInstr
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
.macro tryhealhalfhealth failInstr:req, battler:req
|
.macro tryhealhalfhealth battler:req, failInstr:req
|
||||||
.byte 0x7b
|
.byte 0x7b
|
||||||
.4byte \failInstr
|
|
||||||
.byte \battler
|
.byte \battler
|
||||||
|
.4byte \failInstr
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
.macro trymirrormove
|
.macro trymirrormove
|
||||||
@ -1427,7 +1427,7 @@
|
|||||||
.4byte \jumpInstr
|
.4byte \jumpInstr
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
.macro setpledgestatus battler:req sidestatus:req
|
.macro setpledgestatus battler:req, sidestatus:req
|
||||||
callnative BS_SetPledgeStatus
|
callnative BS_SetPledgeStatus
|
||||||
.byte \battler
|
.byte \battler
|
||||||
.4byte \sidestatus
|
.4byte \sidestatus
|
||||||
|
|||||||
@ -1077,7 +1077,7 @@ BattleScript_PurifyWorks:
|
|||||||
updatestatusicon BS_TARGET
|
updatestatusicon BS_TARGET
|
||||||
printstring STRINGID_ATTACKERCUREDTARGETSTATUS
|
printstring STRINGID_ATTACKERCUREDTARGETSTATUS
|
||||||
waitmessage B_WAIT_TIME_LONG
|
waitmessage B_WAIT_TIME_LONG
|
||||||
tryhealhalfhealth BattleScript_AlreadyAtFullHp, BS_ATTACKER
|
tryhealhalfhealth BS_ATTACKER, BattleScript_AlreadyAtFullHp
|
||||||
goto BattleScript_RestoreHp
|
goto BattleScript_RestoreHp
|
||||||
|
|
||||||
BattleScript_EffectStrengthSap::
|
BattleScript_EffectStrengthSap::
|
||||||
@ -2408,7 +2408,7 @@ BattleScript_GravityLoopEnd:
|
|||||||
|
|
||||||
BattleScript_EffectRoost::
|
BattleScript_EffectRoost::
|
||||||
attackcanceler
|
attackcanceler
|
||||||
tryhealhalfhealth BattleScript_AlreadyAtFullHp, BS_TARGET
|
tryhealhalfhealth BS_TARGET, BattleScript_AlreadyAtFullHp
|
||||||
setroost
|
setroost
|
||||||
goto BattleScript_PresentHealTarget
|
goto BattleScript_PresentHealTarget
|
||||||
|
|
||||||
@ -2836,7 +2836,7 @@ BattleScript_EffectConversion::
|
|||||||
|
|
||||||
BattleScript_EffectRestoreHp::
|
BattleScript_EffectRestoreHp::
|
||||||
attackcanceler
|
attackcanceler
|
||||||
tryhealhalfhealth BattleScript_AlreadyAtFullHp, BS_ATTACKER
|
tryhealhalfhealth BS_ATTACKER, BattleScript_AlreadyAtFullHp
|
||||||
attackanimation
|
attackanimation
|
||||||
waitanimation
|
waitanimation
|
||||||
BattleScript_RestoreHp:
|
BattleScript_RestoreHp:
|
||||||
@ -3858,7 +3858,7 @@ BattleScript_DefenseCurlDoStatUpAnim::
|
|||||||
|
|
||||||
BattleScript_EffectSoftboiled::
|
BattleScript_EffectSoftboiled::
|
||||||
attackcanceler
|
attackcanceler
|
||||||
tryhealhalfhealth BattleScript_AlreadyAtFullHp, BS_TARGET
|
tryhealhalfhealth BS_TARGET, BattleScript_AlreadyAtFullHp
|
||||||
BattleScript_PresentHealTarget::
|
BattleScript_PresentHealTarget::
|
||||||
attackanimation
|
attackanimation
|
||||||
waitanimation
|
waitanimation
|
||||||
|
|||||||
@ -9622,7 +9622,7 @@ static void Cmd_jumpifnexttargetvalid(void)
|
|||||||
|
|
||||||
static void Cmd_tryhealhalfhealth(void)
|
static void Cmd_tryhealhalfhealth(void)
|
||||||
{
|
{
|
||||||
CMD_ARGS(const u8 *failInstr, u8 battler);
|
CMD_ARGS(u8 battler, const u8 *failInstr);
|
||||||
|
|
||||||
const u8 *failInstr = cmd->failInstr;
|
const u8 *failInstr = cmd->failInstr;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user