mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Random grammar fixes + fixes crash while using morning sun & moonlight in some indoor maps
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user