Replace ghost Marowak's ambiguous constant

This commit is contained in:
SatoMew 2020-09-22 18:38:29 +01:00
parent 174ef99e0e
commit 2ff7b40d82
5 changed files with 5 additions and 5 deletions

View file

@ -206,4 +206,4 @@ STARTER2 EQU SQUIRTLE
STARTER3 EQU BULBASAUR STARTER3 EQU BULBASAUR
; ghost in Pokémon Tower ; ghost in Pokémon Tower
GHOST_MON EQU MAROWAK RESTLESS_SOUL EQU MAROWAK

View file

@ -33,7 +33,7 @@ PrintBeginningBattleText:
call IsItemInBag call IsItemInBag
ld a, [wEnemyMonSpecies2] ld a, [wEnemyMonSpecies2]
ld [wcf91], a ld [wcf91], a
cp GHOST_MON cp RESTLESS_SOUL
jr z, .isMarowak jr z, .isMarowak
ld a, b ld a, b
and a and a

View file

@ -6784,7 +6784,7 @@ InitWildBattle:
call LoadEnemyMonData call LoadEnemyMonData
call DoBattleTransitionAndInitBattleVariables call DoBattleTransitionAndInitBattleVariables
ld a, [wCurOpponent] ld a, [wCurOpponent]
cp GHOST_MON cp RESTLESS_SOUL
jr z, .isGhost jr z, .isGhost
call IsGhostBattle call IsGhostBattle
jr nz, .isNoGhost jr nz, .isNoGhost

View file

@ -11,7 +11,7 @@ MarowakAnim:
xor a xor a
ldh [hAutoBGTransferEnabled], a ; disable BG transfer so we don't see the Marowak too soon ldh [hAutoBGTransferEnabled], a ; disable BG transfer so we don't see the Marowak too soon
; replace ghost pic with Marowak in BG ; replace ghost pic with Marowak in BG
ld a, GHOST_MON ld a, RESTLESS_SOUL
ld [wChangeMonPicEnemyTurnSpecies], a ld [wChangeMonPicEnemyTurnSpecies], a
ld a, $1 ld a, $1
ldh [hWhoseTurn], a ldh [hWhoseTurn], a

View file

@ -170,7 +170,7 @@ ItemUseBall:
cp POKEMON_TOWER_6F cp POKEMON_TOWER_6F
jr nz, .loop jr nz, .loop
ld a, [wEnemyMonSpecies2] ld a, [wEnemyMonSpecies2]
cp GHOST_MON cp RESTLESS_SOUL
ld b, $10 ; can't be caught value ld b, $10 ; can't be caught value
jp z, .setAnimData jp z, .setAnimData