Adds hidden ability routes

This commit is contained in:
chardub
2023-01-06 12:51:27 -05:00
parent 3aab96dc6e
commit 70719de497
12 changed files with 58 additions and 5 deletions

View File

@@ -64,6 +64,11 @@ class PokeBattle_Battler
return GameData::Ability.try_get(@ability_id)
end
def hasHiddenAbility?
return @pokemon.ability_index >= 2
end
def ability=(value)
new_ability = GameData::Ability.try_get(value)
@ability_id = (new_ability) ? new_ability.id : nil