Merge pull request #2526 from AsparagusEduardo/RHH/pr/fix/doubleWildChance

Fixed B_DOUBLE_WILD_CHANCE becoming 1% less than what's set
This commit is contained in:
ghoulslash 2022-12-19 08:55:32 -05:00 committed by GitHub
commit 386a62fe81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;