Fixed BGM bug when ending surfing and immediately triggering a trainer battle with an intro BGM, fixed events making all other events check if they trigger after the event moves, fixed Neutralizing Gas triggering twice upon fainting

This commit is contained in:
Maruno17
2023-11-05 15:42:15 +00:00
parent 092fbda34d
commit 156a6fca74
7 changed files with 53 additions and 20 deletions

View File

@@ -328,7 +328,7 @@ class PokemonPokedexInfo_Scene
map_metadata = GameData::MapMetadata.try_get(enc_data.map)
next if !map_metadata || map_metadata.has_flag?("HideEncountersInPokedex")
mappos = map_metadata.town_map_position
next if mappos[0] != @region # Map isn't in the region being shown
next if !mappos || mappos[0] != @region # Map isn't in the region being shown
# Get the size and shape of the map in the Town Map
map_size = map_metadata.town_map_size
map_width = 1