mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-16 13:28:35 +00:00
Update BallVerifier.cs
This commit is contained in:
parent
076bbbbd77
commit
1a5d06d0d0
1 changed files with 3 additions and 1 deletions
|
@ -79,9 +79,11 @@ public sealed class BallVerifier : Verifier
|
||||||
|
|
||||||
return enc switch
|
return enc switch
|
||||||
{
|
{
|
||||||
EncounterSlot8GO => GetResult(true), // Already a strict match
|
|
||||||
EncounterInvalid => GetResult(true), // ignore ball, pass whatever
|
EncounterInvalid => GetResult(true), // ignore ball, pass whatever
|
||||||
|
EncounterSlot8GO g => GetResult(g.IsBallValid(current, pk.Species, pk)),
|
||||||
IFixedBall { FixedBall: not None } s => VerifyBallEquals(current, s.FixedBall),
|
IFixedBall { FixedBall: not None } s => VerifyBallEquals(current, s.FixedBall),
|
||||||
|
EncounterSlot8 when pk is IRibbonSetMark8 { RibbonMarkCurry: true } or IRibbonSetAffixed { AffixedRibbon: (sbyte)RibbonIndex.MarkCurry }
|
||||||
|
=> GetResult(current is Poke or Great or Ultra),
|
||||||
|
|
||||||
EncounterEgg => VerifyBallEgg(enc, current, pk), // Inheritance rules can vary.
|
EncounterEgg => VerifyBallEgg(enc, current, pk), // Inheritance rules can vary.
|
||||||
EncounterStatic5Entree => VerifyBallEquals(current, BallUseLegality.DreamWorldBalls),
|
EncounterStatic5Entree => VerifyBallEquals(current, BallUseLegality.DreamWorldBalls),
|
||||||
|
|
Loading…
Add table
Reference in a new issue