mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Fixes moonlight & Morning sun
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -85,7 +85,7 @@ end
|
|||||||
|
|
||||||
############### MORNING SUN / MOONLIGHT
|
############### MORNING SUN / MOONLIGHT
|
||||||
HiddenMoveHandlers::CanUseMove.add(:MORNINGSUN,proc{|move,pkmn|
|
HiddenMoveHandlers::CanUseMove.add(:MORNINGSUN,proc{|move,pkmn|
|
||||||
mapMetadata = GameData::MapMetadata.get($game_map.map_id)
|
mapMetadata = GameData::MapMetadata.try_get($game_map.map_id)
|
||||||
if !mapMetadata || !mapMetadata.outdoor_map
|
if !mapMetadata || !mapMetadata.outdoor_map
|
||||||
Kernel.pbMessage(_INTL("Can't use that here."))
|
Kernel.pbMessage(_INTL("Can't use that here."))
|
||||||
next false
|
next false
|
||||||
@@ -108,7 +108,7 @@ HiddenMoveHandlers::UseMove.add(:MORNINGSUN,proc{|move,pokemon|
|
|||||||
})
|
})
|
||||||
|
|
||||||
HiddenMoveHandlers::CanUseMove.add(:MOONLIGHT,proc{|move,pkmn|
|
HiddenMoveHandlers::CanUseMove.add(:MOONLIGHT,proc{|move,pkmn|
|
||||||
mapMetadata = GameData::MapMetadata.get($game_map.map_id)
|
mapMetadata = GameData::MapMetadata.try_get($game_map.map_id)
|
||||||
if !mapMetadata || !mapMetadata.outdoor_map
|
if !mapMetadata || !mapMetadata.outdoor_map
|
||||||
Kernel.pbMessage(_INTL("Can't use that here."))
|
Kernel.pbMessage(_INTL("Can't use that here."))
|
||||||
next false
|
next false
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user