mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 06:20:25 +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):
|
||||
return SetMoves(pk, pk.GetMoveSet(la: info.Legality));
|
||||
|
||||
case nameof(PKM.Ball):
|
||||
BallRandomizer.ApplyBallLegalByColor(pk);
|
||||
return ModifyResult.Modified;
|
||||
|
||||
default:
|
||||
return ModifyResult.Error;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue