summaryrefslogtreecommitdiff
path: root/battle/effects/endure.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2013-09-09 21:51:41 -0400
committeryenatch <yenatch@gmail.com>2013-09-09 21:51:41 -0400
commit40010e2514bffb35e9895f5cb1185296f9020c02 (patch)
tree34839c56c6152f37d4354fba57d0b0df1da32065 /battle/effects/endure.asm
parentaaf77957bf6e2a149827461a3126fea0a85102c9 (diff)
split protect and endure effects into battle/effects/
Diffstat (limited to 'battle/effects/endure.asm')
-rw-r--r--battle/effects/endure.asm16
1 files changed, 16 insertions, 0 deletions
diff --git a/battle/effects/endure.asm b/battle/effects/endure.asm
new file mode 100644
index 000000000..b6ae9358e
--- /dev/null
+++ b/battle/effects/endure.asm
@@ -0,0 +1,16 @@
+BattleCommand5a: ; 3766f
+; endure
+
+ call ProtectChance
+ ret c
+
+ ld a, BATTLE_VARS_SUBSTATUS1
+ call GetBattleVarPair
+ set SUBSTATUS_ENDURE, [hl]
+
+ call Function0x37e01
+
+ ld hl, BracedItselfText
+ jp StdBattleTextBox
+; 37683
+