mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-18 22:38:38 +00:00
Add $suggest for PKM.Ball
sets a legal ball, with preference for color matching
This commit is contained in:
parent
99a884c56e
commit
d70a234552
1 changed files with 4 additions and 0 deletions
|
@ -402,6 +402,10 @@ namespace PKHeX.Core
|
||||||
case nameof(PKM.Moves):
|
case nameof(PKM.Moves):
|
||||||
return SetMoves(pk, pk.GetMoveSet(la: info.Legality));
|
return SetMoves(pk, pk.GetMoveSet(la: info.Legality));
|
||||||
|
|
||||||
|
case nameof(PKM.Ball):
|
||||||
|
BallRandomizer.ApplyBallLegalByColor(pk);
|
||||||
|
return ModifyResult.Modified;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return ModifyResult.Error;
|
return ModifyResult.Error;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue