mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-27 04:04:17 +01:00
Update battle_script.inc
This commit is contained in:
parent
3ac480076c
commit
1de476da84
@ -1925,6 +1925,31 @@
|
|||||||
various BS_ATTACKER, VARIOUS_SHELL_SIDE_ARM_CHECK
|
various BS_ATTACKER, VARIOUS_SHELL_SIDE_ARM_CHECK
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
|
.macro jumpifrodaffected battler:req, ptr:req
|
||||||
|
various \battler, VARIOUS_JUMP_IF_ROD
|
||||||
|
.4byte \ptr
|
||||||
|
.endm
|
||||||
|
|
||||||
|
.macro jumpifabsorbaffected battler:req, ptr:req
|
||||||
|
various \battler, VARIOUS_JUMP_IF_ABSORB
|
||||||
|
.4byte \ptr
|
||||||
|
.endm
|
||||||
|
|
||||||
|
.macro jumpifmotoraffected battler:req, ptr:req
|
||||||
|
various \battler, VARIOUS_JUMP_IF_MOTOR
|
||||||
|
.4byte \ptr
|
||||||
|
.endm
|
||||||
|
|
||||||
|
.macro jumpifteanoberry ptr:req
|
||||||
|
various BS_ATTACKER, VARIOUS_TEATIME_TARGETS
|
||||||
|
.4byte \ptr
|
||||||
|
.endm
|
||||||
|
|
||||||
|
.macro jumpifteainvulnerable battler:req, ptr:req
|
||||||
|
various \battler, VARIOUS_TEATIME_INVUL
|
||||||
|
.4byte \ptr
|
||||||
|
.endm
|
||||||
|
|
||||||
@ helpful macros
|
@ helpful macros
|
||||||
.macro setstatchanger stat:req, stages:req, down:req
|
.macro setstatchanger stat:req, stages:req, down:req
|
||||||
setbyte sSTATCHANGER \stat | \stages << 3 | \down << 7
|
setbyte sSTATCHANGER \stat | \stages << 3 | \down << 7
|
||||||
|
Loading…
Reference in New Issue
Block a user