mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-02 17:56:57 -05:00
Fix hidden ability patch possible check
Just return true when it is possible
This commit is contained in:
@@ -111,9 +111,8 @@ public static bool IsAbilityPatchRevertPossible(EvolutionHistory evosAll, int ab
|
||||
{
|
||||
var evo = evos[i];
|
||||
var pi = table[evo.Species, evo.Form];
|
||||
if (pi.GetIsAbility12Same())
|
||||
continue;
|
||||
return true;
|
||||
if (!pi.GetIsAbility12Same())
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -127,8 +126,7 @@ public static bool IsAbilityPatchRevertPossible(EvolutionHistory evosAll, int ab
|
||||
var evo = evos[i];
|
||||
var pi = table[evo.Species, evo.Form];
|
||||
if (pi.GetIsAbilityHiddenUnique())
|
||||
continue;
|
||||
return true;
|
||||
return true;
|
||||
}
|
||||
|
||||
// Some species have a distinct hidden ability only on another form, and can change between that form and its current form.
|
||||
|
||||
Reference in New Issue
Block a user