[Hotfix] Allow to hatch pokemon with Hidden Ability again (#3222)

This commit is contained in:
NightKev 2024-07-29 14:00:49 -07:00 committed by GitHub
parent 8aa3babf39
commit f5101308fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ export class Egg {
let abilityIndex = undefined;
if (pokemonSpecies.abilityHidden && (this._overrideHiddenAbility
|| (this._sourceType === EggSourceType.SAME_SPECIES_EGG && !Utils.randSeedInt(SAME_SPECIES_EGG_HA_RATE)))) {
abilityIndex = pokemonSpecies.ability2 ? 2 : 1;
abilityIndex = 2;
}
// This function has way to many optional parameters