Fix some bugs

This commit is contained in:
Flashfyre committed 2023-04-30 00:51:33 -04:00
1 parent fc4f98b203
commit c6d9816318
5 files changed
+36 -19

No files matched your search

+1 -1
View File
@@ -804,7 +804,7 @@ function getNewModifierTypeOption(party: Pokemon[], player?: boolean, tier?: Mod
player = true;
if (tier === undefined) {
const tierValue = Utils.randInt(256);
if (player) {
if (player && tierValue) {
const partyShinyCount = party.filter(p => p.shiny).length;
const upgradeOdds = Math.floor(32 / Math.max((partyShinyCount * 2), 1));
upgrade = !Utils.randInt(upgradeOdds);