Oopsie, ballId should be u16 to read items beyond the 255th. It's not like people would normally put Poké Balls anywhere besides the other ones, but it's better to be safe than sorry.

LOuroboros 2022-08-19 10:38:07 -03:00
parent a5c078945b
commit a1d6770f8e
1 changed files with 1 additions and 1 deletions

@ -206,7 +206,7 @@ This command will let you modify the caught ball of a Pokémon that is chosen by
```c
void SetMonBall(void)
{
u8 ballId = VarGet(VAR_TEMP_1);
u16 ballId = VarGet(VAR_TEMP_1);
SetMonData(&gPlayerParty[gSpecialVar_0x8004], MON_DATA_POKEBALL, &ballId);
}
```