Fix party shiny odds check on locked reroll

This commit is contained in:
Flashfyre 2024-04-05 11:37:07 -04:00
parent ad6924485f
commit b221c519a4
1 changed files with 1 additions and 1 deletions

View File

@ -1402,7 +1402,7 @@ function getNewModifierTypeOption(party: Pokemon[], poolType: ModifierPoolType,
} else if (upgradeCount === undefined && player) {
upgradeCount = 0;
if (tier < ModifierTier.MASTER) {
const partyShinyCount = 6;//party.filter(p => p.isShiny() && !p.isFainted()).length;
const partyShinyCount = party.filter(p => p.isShiny() && !p.isFainted()).length;
const upgradeOdds = Math.floor(32 / ((partyShinyCount + 2) / 2));
while (modifierPool.hasOwnProperty(tier + upgradeCount + 1) && modifierPool[tier + upgradeCount + 1].length) {
if (!Utils.randSeedInt(upgradeOdds))