aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/PokemonFanClub.asm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/PokemonFanClub.asm')
-rw-r--r--scripts/PokemonFanClub.asm20
1 files changed, 10 insertions, 10 deletions
diff --git a/scripts/PokemonFanClub.asm b/scripts/PokemonFanClub.asm
index 4c8acd39..5bd881af 100644
--- a/scripts/PokemonFanClub.asm
+++ b/scripts/PokemonFanClub.asm
@@ -11,19 +11,19 @@ PokemonFanClub_ScriptPointers:
dw_const PokemonFanClubScript1, SCRIPT_POKEMONFANCLUB_SCRIPT1
PokemonFanClubScript0:
- ld hl, wd492
- bit 7, [hl]
+ ld hl, wPikachuMapScriptFlags
+ bit BIT_PIKACHU_MAP_SCRIPT_ACTIVE, [hl]
call z, PokemonFanClubScript_59a44
- ld hl, wd492
- set 7, [hl]
+ ld hl, wPikachuMapScriptFlags
+ set BIT_PIKACHU_MAP_SCRIPT_ACTIVE, [hl]
ret
PokemonFanClubScript1:
- ld hl, wd492
- bit 7, [hl]
+ ld hl, wPikachuMapScriptFlags
+ bit BIT_PIKACHU_MAP_SCRIPT_ACTIVE, [hl]
call z, PokemonFanClubScript_59a39
- ld hl, wd492
- set 7, [hl]
+ ld hl, wPikachuMapScriptFlags
+ set BIT_PIKACHU_MAP_SCRIPT_ACTIVE, [hl]
ret
PokemonFanClubScript_59a39:
@@ -34,8 +34,8 @@ PokemonFanClubScript_59a39:
ret
PokemonFanClubScript_59a44:
- ld a, [wd471]
- bit 7, a
+ ld a, [wPikachuSpawnStateFlags]
+ bit BIT_PIKACHU_SPAWN_STARTER, a
ret z
callfar CheckPikachuStatusCondition
ret c