Fix Locked Reroll not using Luck Score

This commit is contained in:
Scooom 2025-03-11 04:52:12 -05:00 committed by GitHub
parent b298138157
commit 552c603da9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3566,8 +3566,8 @@ function getNewModifierTypeOption(
} else if (upgradeCount === undefined && player) {
upgradeCount = 0;
if (tier < ModifierTier.MASTER && allowLuckUpgrades) {
const partyShinyCount = party.filter(p => p.isShiny() && !p.isFainted()).length;
const upgradeOdds = Math.floor(32 / ((partyShinyCount + 2) / 2));
const partyLuckValue = getPartyLuckValue(party);
const upgradeOdds = Math.floor(128 / ((partyLuckValue + 4) / 4));
while (modifierPool.hasOwnProperty(tier + upgradeCount + 1) && modifierPool[tier + upgradeCount + 1].length) {
if (!randSeedInt(upgradeOdds)) {
upgradeCount++;