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:
Maruno17
2022-06-13 21:09:48 +01:00
parent 732c167ad5
commit 301ecb0ac7
5 changed files with 37 additions and 12 deletions

View File

@@ -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