Handle shedinja encounter balls

nincada -> spawn shedinja = pokeball (wild encounter rules if gen3)
shedinja encounter = wild encounter rules
This commit is contained in:
Kurt
2019-12-05 16:40:14 -08:00
parent b2fc99e50a
commit 786d9c8f18

View File

@@ -38,7 +38,7 @@ private CheckResult VerifyBall(LegalityAnalysis data)
// Capture / Inherit cases -- can be one of many balls
var pkm = data.pkm;
if (pkm.Species == 292 && Info.Generation > 3) // Shedinja. For gen3, copy the ball from Nincada
if (pkm.Species == (int)Species.Shedinja && Info.Generation != 3 && data.EncounterMatch.Species != (int)Species.Shedinja) // Shedinja. For gen3, copy the ball from Nincada
return VerifyBallEquals(data, (int)Poke); // Pokeball Only
if (pkm.Ball == (int)Heavy && Legal.AlolanCaptureNoHeavyBall.Contains(EncounterMatch.Species) && !EncounterMatch.EggEncounter && pkm.SM)