Fix random IVs for givemon (#5021)
This commit is contained in:
commit
305c1ba55e
1 changed files with 6 additions and 6 deletions
|
@ -446,12 +446,12 @@ void ScrCmd_givemon(struct ScriptContext *ctx)
|
|||
u8 speedEv = PARSE_FLAG(8, 0);
|
||||
u8 spAtkEv = PARSE_FLAG(9, 0);
|
||||
u8 spDefEv = PARSE_FLAG(10, 0);
|
||||
u8 hpIv = PARSE_FLAG(11, Random() % MAX_PER_STAT_IVS + 1);
|
||||
u8 atkIv = PARSE_FLAG(12, Random() % MAX_PER_STAT_IVS + 1);
|
||||
u8 defIv = PARSE_FLAG(13, Random() % MAX_PER_STAT_IVS + 1);
|
||||
u8 speedIv = PARSE_FLAG(14, Random() % MAX_PER_STAT_IVS + 1);
|
||||
u8 spAtkIv = PARSE_FLAG(15, Random() % MAX_PER_STAT_IVS + 1);
|
||||
u8 spDefIv = PARSE_FLAG(16, Random() % MAX_PER_STAT_IVS + 1);
|
||||
u8 hpIv = PARSE_FLAG(11, Random() % (MAX_PER_STAT_IVS + 1));
|
||||
u8 atkIv = PARSE_FLAG(12, Random() % (MAX_PER_STAT_IVS + 1));
|
||||
u8 defIv = PARSE_FLAG(13, Random() % (MAX_PER_STAT_IVS + 1));
|
||||
u8 speedIv = PARSE_FLAG(14, Random() % (MAX_PER_STAT_IVS + 1));
|
||||
u8 spAtkIv = PARSE_FLAG(15, Random() % (MAX_PER_STAT_IVS + 1));
|
||||
u8 spDefIv = PARSE_FLAG(16, Random() % (MAX_PER_STAT_IVS + 1));
|
||||
u16 move1 = PARSE_FLAG(17, MOVE_NONE);
|
||||
u16 move2 = PARSE_FLAG(18, MOVE_NONE);
|
||||
u16 move3 = PARSE_FLAG(19, MOVE_NONE);
|
||||
|
|
Loading…
Reference in a new issue