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

@@ -765,8 +765,8 @@ def pbUseItemMessage(item)
end
end
def pbCheckUseOnPokemon(_item, pkmn, _screen)
return pkmn && !pkmn.egg?
def pbCheckUseOnPokemon(item, pkmn, _screen)
return pkmn && !pkmn.egg? && (!pkmn.hyper_mode || GameData::Item.get(item)&.is_scent?)
end
#===============================================================================