mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-16 00:58:01 +00:00
fix ability comparison
a==a obviously, need to check against the current ability
This commit is contained in:
parent
a25425a277
commit
5b4b6e4158
1 changed files with 1 additions and 1 deletions
|
@ -1117,7 +1117,7 @@ namespace PKHeX.Core
|
|||
|
||||
if (EncounterMatch is EncounterTrade z && EncounterAbility == 1 << abilval && z.Species == pkm.Species) // Edge case (Static PID?)
|
||||
AddLine(Severity.Valid, V115, CheckIdentifier.Ability);
|
||||
else if (EncounterMatch is PCD d && d.Species == pkm.Species && d.Gift.PK.Ability == EncounterAbility) // Edge case (PID ability gift mismatch)
|
||||
else if (EncounterMatch is PCD d && d.Species == pkm.Species && pkm.Ability == EncounterAbility) // Edge case (PID ability gift mismatch)
|
||||
AddLine(Severity.Valid, V115, CheckIdentifier.Ability);
|
||||
else if (pkm.Format >= 6 && abilities[0] != abilities[1] && pkm.AbilityNumber < 4 && EncounterAbility != 4) // Ability Capsule can change between 1/2
|
||||
AddLine(Severity.Valid, V109, CheckIdentifier.Ability);
|
||||
|
|
Loading…
Reference in a new issue