Fixed B_DOUBLE_WILD_CHANCE becoming 1% less than what's set

This commit is contained in:
Eduardo Quezada 2022-12-18 13:49:02 -03:00
parent 892fa1bc55
commit bd7d949f5f

View file

@ -1104,7 +1104,7 @@ bool8 TryDoDoubleWildBattle(void)
return TRUE;
#endif
#if B_DOUBLE_WILD_CHANCE != 0
else if ((Random() % 100) + 1 < B_DOUBLE_WILD_CHANCE)
else if ((Random() % 100) + 1 <= B_DOUBLE_WILD_CHANCE)
return TRUE;
#endif
return FALSE;