mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-02 13:37:10 -05:00
Fix single-chain ability revert check
This commit is contained in:
@@ -151,14 +151,13 @@ public static bool IsAbilityPatchRevertPossible(EvolutionHistory evosAll, int ab
|
||||
{
|
||||
var evo = evos[i];
|
||||
var pi = table[evo.Species, evo.Form];
|
||||
if (revert && abilityIndex == 2 && !pi.GetIsAbility12Same())
|
||||
if (revert && !pi.GetIsAbility12Same())
|
||||
return true;
|
||||
if (pi.GetIsAbilityHiddenUnique())
|
||||
if (!pi.GetIsAbilityHiddenUnique())
|
||||
continue;
|
||||
if (abilityIndex == 1 || !pi.GetIsAbility12Same())
|
||||
return true;
|
||||
revert = true;
|
||||
if (pi.GetIsAbility12Same())
|
||||
continue;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user