Fix Rock Smash slots

DexNav table derivation was reusing the same objects, just create new
ones
This commit is contained in:
Kaphotics 2016-03-17 23:25:59 -07:00
parent c3ab1dcb92
commit ce2b2949e8

View file

@ -82,13 +82,12 @@ namespace PKHeX
}
return GameSlots;
}
private static EncounterArea[] getDexNavSlots(EncounterArea[] GameSlots, int smashSlot)
{
EncounterArea[] eA = new EncounterArea[GameSlots.Length];
for (int i = 0; i < eA.Length; i++)
{
eA[i] = GameSlots[i];
eA[i] = new EncounterArea {Location = GameSlots[i].Location, Slots = GameSlots[i].Slots};
eA[i].Slots = eA[i].Slots.Take(smashSlot).Concat(eA[i].Slots.Skip(smashSlot+5)).ToArray(); // Skip 5 Rock Smash slots.
}
return eA;