Random grammar fixes + fixes crash while using morning sun & moonlight in some indoor maps

This commit is contained in:
infinitefusion
2022-12-12 12:20:12 -05:00
parent 9ce39abad3
commit ecaa38d6c2
40 changed files with 9 additions and 6 deletions

View File

@@ -85,7 +85,8 @@ end
############### MORNING SUN / MOONLIGHT
HiddenMoveHandlers::CanUseMove.add(:MORNINGSUN,proc{|move,pkmn|
if !GameData::MapMetadata.get($game_map.map_id).outdoor_map
mapMetadata = GameData::MapMetadata.get($game_map.map_id)
if !mapMetadata || !mapMetadata.outdoor_map
Kernel.pbMessage(_INTL("Can't use that here."))
next false
end
@@ -107,7 +108,8 @@ HiddenMoveHandlers::UseMove.add(:MORNINGSUN,proc{|move,pokemon|
})
HiddenMoveHandlers::CanUseMove.add(:MOONLIGHT,proc{|move,pkmn|
if !GameData::MapMetadata.get($game_map.map_id).outdoor_map
mapMetadata = GameData::MapMetadata.get($game_map.map_id)
if !mapMetadata || !mapMetadata.outdoor_map
Kernel.pbMessage(_INTL("Can't use that here."))
next false
end