From ce2b2949e805671d6a0abf5bbefecb44da16bc09 Mon Sep 17 00:00:00 2001 From: Kaphotics Date: Thu, 17 Mar 2016 23:25:59 -0700 Subject: [PATCH] Fix Rock Smash slots DexNav table derivation was reusing the same objects, just create new ones --- Legality/Core.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Legality/Core.cs b/Legality/Core.cs index a39b6ca99..4e68fe30e 100644 --- a/Legality/Core.cs +++ b/Legality/Core.cs @@ -82,13 +82,12 @@ private static EncounterArea[] addXYAltTiles(EncounterArea[] GameSlots, Encounte } 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;