Don't remove <=g7 move if swsh context

This commit is contained in:
Kurt 2024-03-17 17:30:04 -05:00
parent 9e7046564c
commit 2b6f153831

View file

@ -127,7 +127,10 @@ public sealed class LearnGroupHOME : ILearnGroup
// HOME has special handling to allow Volt Tackle outside learnset possibilities.
// Most games do not have a Learn Source for Volt Tackle besides it being specially inserted for Egg Encounters.
if (!valid && move is not (ushort)Move.VoltTackle)
r = default;
{
if (r.Generation >= 8 || local is not LearnSource8SWSH)
r = default;
}
}
return MoveResult.AllParsed(result);