Skip to content

Commit 85c3975

Browse files
authored
[Bug] [Balance] Fix Locked Reroll not using Luck Score (#5502)
1 parent f3f43f4 commit 85c3975

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/modifier/modifier-type.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -3566,10 +3566,10 @@ function getNewModifierTypeOption(
35663566
} else if (upgradeCount === undefined && player) {
35673567
upgradeCount = 0;
35683568
if (tier < ModifierTier.MASTER && allowLuckUpgrades) {
3569-
const partyShinyCount = party.filter(p => p.isShiny() && !p.isFainted()).length;
3570-
const upgradeOdds = Math.floor(32 / ((partyShinyCount + 2) / 2));
3569+
const partyLuckValue = getPartyLuckValue(party);
3570+
const upgradeOdds = Math.floor(128 / ((partyLuckValue + 4) / 4));
35713571
while (modifierPool.hasOwnProperty(tier + upgradeCount + 1) && modifierPool[tier + upgradeCount + 1].length) {
3572-
if (!randSeedInt(upgradeOdds)) {
3572+
if (randSeedInt(upgradeOdds) < 4) {
35733573
upgradeCount++;
35743574
} else {
35753575
break;

0 commit comments

Comments
 (0)