mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-19 12:20:22 -05:00
Check egg state before allowing gmax toggle
eggs can't toggle gmax state
This commit is contained in:
parent
9264150b2b
commit
2bb399c8e7
|
|
@ -400,7 +400,7 @@ private void VerifySWSHStats(LegalityAnalysis data, PK8 pk8)
|
|||
bool originGMax = enc is IGigantamax g && g.CanGigantamax;
|
||||
if (originGMax != pk8.CanGigantamax)
|
||||
{
|
||||
bool ok = pk8.CanToggleGigantamax(pk8.Species, pk8.AltForm, enc.Species, enc.Form);
|
||||
bool ok = !pk8.IsEgg && pk8.CanToggleGigantamax(pk8.Species, pk8.AltForm, enc.Species, enc.Form);
|
||||
var chk = ok ? GetValid(LStatGigantamaxValid) : GetInvalid(LStatGigantamaxInvalid);
|
||||
data.AddLine(chk);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user