From bd7b5e7b1a68c9f9b61788ee0816cb3e06a19ac2 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Tue, 5 Sep 2023 19:14:12 +0100 Subject: [PATCH] Temporary force legendary --- src/helpers/CardDropHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/CardDropHelper.ts b/src/helpers/CardDropHelper.ts index 0b32535..ba761ed 100644 --- a/src/helpers/CardDropHelper.ts +++ b/src/helpers/CardDropHelper.ts @@ -24,7 +24,7 @@ export default class CardDropHelper { else if (randomRarity < goldChance) cardRarity = CardRarity.Gold; else cardRarity = CardRarity.Legendary; - const allCards = randomSeries.Cards.filter(x => x.Rarity == cardRarity && x.Path && x.FileName); + const allCards = randomSeries.Cards.filter(x => x.Rarity == cardRarity && x.Path && x.FileName && x.Rarity == CardRarity.Legendary); const randomCardIndex = Math.floor(Math.random() * allCards.length);