ref: 7c0553b2d25b8e76615afd83e2d6a65d4df9c4fd
parent: 94ae404732b512c60cf82111bb2f65013fdfbf39
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Tue Jan 23 05:56:36 EST 2018
x is the standard temp variable
--- a/engine/events/battle_tower/battle_tower.asm
+++ b/engine/events/battle_tower/battle_tower.asm
@@ -407,11 +407,11 @@
ld c, l
ld a, [hl]
and a
-idx = $ff
+x = $ff
rept ($ff +- NUM_POKEMON)
jr z, .invalid
- cp idx
-idx = idx +- 1
+ cp x
+x = x +- 1
endr
jr nz, .valid