mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-14 16:10:36 -05:00
Add rebattleable Miror B locations to xd shadows
https://projectpokemon.org/home/forums/topic/44957-bug-pokemon-xd-post-game-shadows-flagged-illegal/ if shadow lock sets are ever implemented, would need to update this as well to 'clone' with the different shadow teams available.
This commit is contained in:
parent
505877763b
commit
1b4ec11335
|
|
@ -604,7 +604,21 @@ private static EncounterArea GetUnownArea(int location, IReadOnlyList<int> SlotF
|
|||
},
|
||||
};
|
||||
|
||||
internal static readonly EncounterStatic[] Encounter_CXD = Encounter_Colo.Concat(Encounter_XD).ToArray();
|
||||
private static readonly int[] MirorBXDLocations =
|
||||
{
|
||||
090, // Rock
|
||||
091, // Oasis
|
||||
092, // Cave
|
||||
113, // Pyrite Town
|
||||
059, // Realgam Tower
|
||||
};
|
||||
internal static readonly EncounterStatic[] Encounter_CXD = Encounter_Colo.Concat(Encounter_XD.SelectMany(CloneMirorB)).ToArray();
|
||||
private static IEnumerable<EncounterStatic> CloneMirorB(EncounterStatic arg)
|
||||
{
|
||||
yield return arg;
|
||||
foreach (int loc in MirorBXDLocations)
|
||||
yield return arg.Clone(loc);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user