summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2013-09-09 22:01:24 -0400
committeryenatch <yenatch@gmail.com>2013-09-09 22:01:24 -0400
commit91e89a29a20d075ffbdd3a2f75b507c8202b1dce (patch)
treeb30ed93321ffae63a1ddb881493ebae3a2a8864e
parentb437aaf3290489caf22cd916ce023a1a9b3578a4 (diff)
comment spikes move effect
-rw-r--r--battle/effect_commands.asm12
1 files changed, 9 insertions, 3 deletions
diff --git a/battle/effect_commands.asm b/battle/effect_commands.asm
index 996634376..dc6ca521c 100644
--- a/battle/effect_commands.asm
+++ b/battle/effect_commands.asm
@@ -9557,13 +9557,19 @@ BattleCommand56: ; 37683
and a
jr z, .asm_3768e
ld hl, PlayerScreens
-
.asm_3768e
- bit 0, [hl]
+
+; Fails if spikes are already down!
+
+ bit SCREENS_SPIKES, [hl]
jr nz, .failed
- set 0, [hl]
+; Nothing else stops it from working.
+
+ set SCREENS_SPIKES, [hl]
+
call Function0x37e01
+
ld hl, SpikesText
jp StdBattleTextBox