mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 14:30:56 +00:00
Add SPA/ENG Oct16 Diancie collision handling
Card 0525 was accidentally uploaded without the 3 flawless IVs setting; sometimes when the internal event binary is built, the 3IV card comes before the 0IV. Play favorites with the 0IV.
This commit is contained in:
parent
d8c2cdb8e3
commit
16341b4d91
1 changed files with 3 additions and 1 deletions
|
@ -1078,7 +1078,9 @@ namespace PKHeX.Core
|
||||||
if (!GetIsMatchWC6(pkm, wc, vs))
|
if (!GetIsMatchWC6(pkm, wc, vs))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (wc.Species == pkm.Species) // best match
|
if (wc.CardID == 0525 && wc.IV_HP == 0xFE) // 3IV collision, yield the non 3IV first
|
||||||
|
deferred.Add(wc);
|
||||||
|
else if (wc.Species == pkm.Species) // best match
|
||||||
yield return wc;
|
yield return wc;
|
||||||
else
|
else
|
||||||
deferred.Add(wc);
|
deferred.Add(wc);
|
||||||
|
|
Loading…
Reference in a new issue