mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-06-11 19:21:18 -05:00
Fix learnset bug
This fixes the weird case of hidden ability Staraptor in gen 5 being disallowed egg moves because Starly doesn't have a hidden ability in gen 5. Non-hidden ability Starly can actually evolve into hidden ability Staravia/Staraptor.
This commit is contained in:
parent
c32666c178
commit
9742ecf62f
|
|
@ -731,6 +731,7 @@ Validator = (function () {
|
|||
} else if (template.prevo) {
|
||||
template = tools.getTemplate(template.prevo);
|
||||
if (template.gen > Math.max(2, tools.gen)) template = null;
|
||||
if (!template.abilities['H']) isHidden = false;
|
||||
} else if (template.baseSpecies !== template.species && template.baseSpecies !== 'Kyurem' && template.baseSpecies !== 'Pikachu') {
|
||||
template = tools.getTemplate(template.baseSpecies);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user