mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 22:24:58 +00:00
Fixed code assuming map metadata exists, fixed misplaced species data methods, rewrote class PokeBattle_Pokemon
This commit is contained in:
@@ -61,8 +61,9 @@ def pbInSafari?
|
||||
# Reception map is handled separately from safari map since the reception
|
||||
# map can be outdoors, with its own grassy patches.
|
||||
reception = pbSafariState.pbReceptionMap
|
||||
return true if $game_map.map_id==reception
|
||||
return true if GameData::MapMetadata.get($game_map.map_id).safari_map
|
||||
return true if $game_map.map_id == reception
|
||||
map_metadata = GameData::MapMetadata.try_get($game_map.map_id)
|
||||
return true if map_metadata && map_metadata.safari_map
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user