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
; ghost in Pokémon Tower
GHOST_MON EQU MAROWAK
RESTLESS_SOUL EQU MAROWAK

View file

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

View file

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

View file

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

View file

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