mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-14 16:27:21 +00:00
Fix formarg check for stantler/bisharp/primeape
This commit is contained in:
parent
03182ebd3d
commit
140196d9ab
1 changed files with 3 additions and 3 deletions
|
@ -297,17 +297,17 @@ public sealed class FormVerifier : Verifier
|
|||
not 0 when pk.IsEgg => GetInvalid(LFormArgumentNotAllowed),
|
||||
not 0 when pk.CurrentLevel < 31 => GetInvalid(LFormArgumentHigh),
|
||||
> 9_999 => GetInvalid(LFormArgumentHigh),
|
||||
_ => HasVisitedPLA(data, Stantler) ? GetValid(LFormArgumentValid) : GetInvalid(LFormArgumentNotAllowed),
|
||||
_ => arg == 0 || HasVisitedPLA(data, Stantler) ? GetValid(LFormArgumentValid) : GetInvalid(LFormArgumentNotAllowed),
|
||||
},
|
||||
Primeape => arg switch
|
||||
{
|
||||
> 9_999 => GetInvalid(LFormArgumentHigh),
|
||||
_ => HasVisitedSV(data, Primeape) ? GetValid(LFormArgumentValid) : GetInvalid(LFormArgumentNotAllowed),
|
||||
_ => arg == 0 || HasVisitedSV(data, Primeape) ? GetValid(LFormArgumentValid) : GetInvalid(LFormArgumentNotAllowed),
|
||||
},
|
||||
Bisharp => arg switch
|
||||
{
|
||||
> 9_999 => GetInvalid(LFormArgumentHigh),
|
||||
_ => HasVisitedSV(data, Bisharp) ? GetValid(LFormArgumentValid) : GetInvalid(LFormArgumentNotAllowed),
|
||||
_ => arg == 0 || HasVisitedSV(data, Bisharp) ? GetValid(LFormArgumentValid) : GetInvalid(LFormArgumentNotAllowed),
|
||||
},
|
||||
Runerigus => VerifyFormArgumentRange(enc.Species, Runerigus, arg, 49, 9999),
|
||||
Alcremie => VerifyFormArgumentRange(enc.Species, Alcremie, arg, 0, (uint)AlcremieDecoration.Ribbon),
|
||||
|
|
Loading…
Reference in a new issue