From 9742ecf62f39f3c26547f54dfe22f3efaeadfbe0 Mon Sep 17 00:00:00 2001 From: The Immortal Date: Sun, 22 Feb 2015 15:37:05 +0400 Subject: [PATCH] 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. --- team-validator.js | 1 + 1 file changed, 1 insertion(+) diff --git a/team-validator.js b/team-validator.js index b5a6289878..b65d6f8682 100644 --- a/team-validator.js +++ b/team-validator.js @@ -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 {