shithub: pokecrystal

Download patch

ref: 91e89a29a20d075ffbdd3a2f75b507c8202b1dce
parent: b437aaf3290489caf22cd916ce023a1a9b3578a4
author: yenatch <[email protected]>
date: Mon Sep 9 18:01:24 EDT 2013

comment spikes move effect

--- a/battle/effect_commands.asm
+++ b/battle/effect_commands.asm
@@ -9557,13 +9557,19 @@
 	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