mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 20:43:07 +00:00
Update mystery match for dppt
off by one
This commit is contained in:
parent
8e3e218d54
commit
0f01068d0d
1 changed files with 3 additions and 1 deletions
|
@ -694,7 +694,7 @@ namespace PKHeX.Core
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static int[] MatchMysteryGifts(MysteryGift[] value)
|
private int[] MatchMysteryGifts(MysteryGift[] value)
|
||||||
{
|
{
|
||||||
if (value == null)
|
if (value == null)
|
||||||
return null;
|
return null;
|
||||||
|
@ -721,6 +721,8 @@ namespace PKHeX.Core
|
||||||
if (!pcd.GiftEquals(pgt))
|
if (!pcd.GiftEquals(pgt))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (!HGSS)
|
||||||
|
j++; // hgss 0,1,2; dppt 1,2,3
|
||||||
cardMatch[i] = pgt.Slot = j;
|
cardMatch[i] = pgt.Slot = j;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue