mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +00:00
Fixed error when shifting Pokémon at the end of a battle round, fixed Giratina's form code crashing if the current map doesn't have metadata, fixed item sell prices being halved twice
This commit is contained in:
@@ -260,8 +260,7 @@ MultipleForms.register(:ROTOM, {
|
||||
MultipleForms.register(:GIRATINA, {
|
||||
"getForm" => proc { |pkmn|
|
||||
next 1 if pkmn.hasItem?(:GRISEOUSORB)
|
||||
if $game_map &&
|
||||
GameData::MapMetadata.get($game_map.map_id)&.has_flag?("DistortionWorld")
|
||||
if $game_map && $game_map.metadata&.has_flag?("DistortionWorld")
|
||||
next 1
|
||||
end
|
||||
next 0
|
||||
|
||||
Reference in New Issue
Block a user