Disallow encounter edge case moves when battleversion reset

This commit is contained in:
Kurt 2021-01-30 13:15:21 -08:00
parent 8db21c2bd0
commit 3bb4553b24

View file

@ -32,6 +32,9 @@ namespace PKHeX.Core
private static void AddEdgeCaseMoves(List<int> moves, IEncounterable encounter, PKM pkm)
{
if (pkm is IBattleVersion {BattleVersion: not 0})
return;
switch (encounter)
{
case EncounterStatic8N r when r.IsDownLeveled(pkm): // Downleveled Raid can happen for shared raids and self-hosted raids.