Adding ability effect triggers for terrains and weather
A new, probably better way to handle the announcement trigger that abilities such as Protosynthesis and Quark Drive have, when the battle weather or the field terrain change.
Misc. changes:
-EFFECT_DAMAGE_SET_TERRAIN -> EFFECT_HIT_SET_REMOVE_TERRAIN
-It's more appropriate as the effect can be used to force set a terrain or simply to remove an active terrain, after all.
-The main reason for the rename was the inconsistency with the battle script's label.
-Reverted accidentally committed change to B_DOUBLE_WILD_CHANCE, performed back in c8abf00c.
This commit is contained in:
1 parent
0ef148dfbb
commit
e8dfb66c30
9 files changed
+97
-13
No files matched your search
@@ -2010,6 +2010,14 @@
|
||||
.4byte \ptr
|
||||
.endm
|
||||
|
||||
.macro activateweatherabilities battler:req
|
||||
various \battler, VARIOUS_ACTIVATE_WEATHER_ABILITIES
|
||||
.endm
|
||||
|
||||
.macro activateterrainabilities battler:req
|
||||
various \battler, VARIOUS_ACTIVATE_TERRAIN_ABILITIES
|
||||
.endm
|
||||
|
||||
@ helpful macros
|
||||
.macro setstatchanger stat:req, stages:req, down:req
|
||||
setbyte sSTATCHANGER, \stat | \stages << 3 | \down << 7
|
||||
|
||||
Reference in new issue
Block a user