Update mystery match for dppt

off by one
This commit is contained in:
Kurt 2018-12-01 10:44:38 -08:00
parent 8e3e218d54
commit 0f01068d0d

View file

@ -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;
} }