mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Scents now end Hyper Mode, Time Flute now purifies a Shadow Pokémon, Shadow Pokémon now regain 80% of the Exp they missed out on, non-Scent items can't be used on Shadow Pokémon in Hyper Mode
This commit is contained in:
@@ -8,13 +8,18 @@ class Battle
|
||||
return false
|
||||
end
|
||||
# Embargo
|
||||
if battler && battler.effects[PBEffects::Embargo] > 0
|
||||
if battler&.effects[PBEffects::Embargo] > 0
|
||||
if showMessages
|
||||
scene.pbDisplay(_INTL("Embargo's effect prevents the item's use on {1}!",
|
||||
battler.pbThis(true)))
|
||||
end
|
||||
return false
|
||||
end
|
||||
# Hyper Mode and non-Scents
|
||||
if pkmn.hyper_mode && !GameData::Item.get(item)&.is_scent?
|
||||
scene.pbDisplay(_INTL("It won't have any effect.")) if showMessages
|
||||
return false
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user