mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-26 14:00:21 +00:00
Add handling for lgpe lumped in Contains/Gen check
ty Oval Lenin (discord) Co-Authored-By: Ivan <15915901+ivanlonel@users.noreply.github.com>
This commit is contained in:
parent
40cea0c858
commit
59ad4d749f
2 changed files with 3 additions and 3 deletions
|
@ -212,7 +212,7 @@ public static class GameUtil
|
|||
Gen7 => version is SN or MN or US or UM or SM or USUM,
|
||||
|
||||
GG => version is GP or GE,
|
||||
Gen7b => version is GP or GE or GO,
|
||||
Gen7b => version is GP or GE or GO or GG,
|
||||
|
||||
SWSH => version is SW or SH,
|
||||
BDSP => version is BD or SP,
|
||||
|
|
|
@ -131,7 +131,7 @@ public static class EntityContextExtensions
|
|||
/// </summary>
|
||||
public static EntityContext GetContext(this GameVersion version) => version switch
|
||||
{
|
||||
GameVersion.GP or GameVersion.GE or GameVersion.GO => Gen7b,
|
||||
GameVersion.GP or GameVersion.GE or GameVersion.GO or GameVersion.GG or GameVersion.Gen7b => Gen7b,
|
||||
GameVersion.PLA => Gen8a,
|
||||
GameVersion.BD or GameVersion.SP => Gen8b,
|
||||
_ => (EntityContext)version.GetGeneration(),
|
||||
|
|
Loading…
Reference in a new issue