mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-01 14:38:14 -05:00
Continued refinements
This commit is contained in:
@@ -53,7 +53,7 @@ private static IEnumerable<EncounterSlot> GetSlots(EncounterArea8g area, int max
|
||||
continue;
|
||||
if (IsDisallowedDuplicateForm(species, f))
|
||||
continue;
|
||||
bool lgpe = (species <= 151 || species == 808 || species == 809) && ptGG[species].HasForme(f);
|
||||
bool lgpe = (species <= 151 || species == 808 || species == 809) && (f == 0 || ptGG[species].HasForme(f));
|
||||
var game = lgpe ? GameVersion.GG : GameVersion.SWSH;
|
||||
yield return GetSlot(area, species, f, game);
|
||||
}
|
||||
@@ -68,7 +68,7 @@ private static IEnumerable<EncounterSlot> GetSlots(EncounterArea8g area, int max
|
||||
continue;
|
||||
if (IsDisallowedDuplicateForm(species, f))
|
||||
continue;
|
||||
bool lgpe = species <= 151 && ptGG[species].HasForme(f);
|
||||
bool lgpe = species <= 151 && (f == 0 || ptGG[species].HasForme(f));
|
||||
var game = lgpe ? GameVersion.GG : GameVersion.USUM;
|
||||
yield return GetSlot(area, species, f, game);
|
||||
}
|
||||
|
||||
@@ -793,7 +793,7 @@ public static bool IsShinyValid(int species, int form, Ball ball)
|
||||
return true;
|
||||
}
|
||||
|
||||
return UnavailableShiny.Contains(sf);
|
||||
return !UnavailableShiny.Contains(sf);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user