Skip to content

Commit b0d6f06

Browse files
Merge pull request ShiraTheMogul#37 from jojo-kep/master
added backup script to make sure brunswick trail cactus gets hidden
2 parents c7ca751 + 4581a94 commit b0d6f06

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

‎scripts/BrunswickTrail.asm‎

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ BrunswickTrail_ScriptPointers:
1111
dw CheckFightingMapTrainers
1212
dw DisplayEnemyTrainerTextAndStartBattle
1313
dw EndTrainerBattle
14-
14+
dw HideCactus
15+
1516
BrunswickTrail_TextPointers:
1617
dw FakeTreeEvent
1718
dw BrunswickTrainer1
@@ -139,7 +140,13 @@ FakeTreeEvent:
139140

140141
ld hl, CactusTrainerHeader
141142
call TalkToTrainer
142-
jp TextScriptEnd ; I have tried a lot of things and it's not disappearing AAA
143+
144+
;let's try a separate map script as a backup in case cactormous does not disappear like other static wild pokemon.
145+
ld a, 3
146+
ld [wBrunswickTrailCurScript], a
147+
ld [wCurMapScript], a
148+
149+
; jp TextScriptEnd ; I have tried a lot of things and it's not disappearing AAA
143150
;.NoCut
144151
; ld hl, FakeTreeNoCut ; Why do you have to be this way? I scream, for I do not know.
145152
; call PrintText
@@ -154,6 +161,19 @@ CactusBattleText:
154161
call PlayCry
155162
call WaitForSoundToFinish
156163
jp TextScriptEnd
164+
165+
HideCactus:
166+
;this runs after the cactormous battle to make sure it gets hidden
167+
ld a, HS_CACTUS
168+
ld [wMissableObjectIndex], a
169+
predef HideObject
170+
call UpdateSprites
171+
call Delay3
172+
xor a
173+
ld [wBrunswickTrailCurScript], a
174+
ld [wCurMapScript], a
175+
ret
176+
157177
158178
GZapFound:
159179
text_asm

0 commit comments

Comments
 (0)