mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-17 05:48:44 +00:00
Fix single-chain ability revert check
This commit is contained in:
parent
48ac105032
commit
762f7171cc
1 changed files with 4 additions and 5 deletions
|
@ -151,14 +151,13 @@ public static class AbilityChangeRules
|
|||
{
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue