mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-11 02:05:32 -05:00
Handle shedinja encounter balls
nincada -> spawn shedinja = pokeball (wild encounter rules if gen3) shedinja encounter = wild encounter rules
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user