mirror of
https://github.com/kwsch/PKHeX
synced 2024-09-21 23:02:00 +00:00
Fix Rock Smash slots
DexNav table derivation was reusing the same objects, just create new ones
This commit is contained in:
parent
c3ab1dcb92
commit
ce2b2949e8
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue