Compare commits
6 commits
6629ac30aa
...
1a4d4b4e23
Author | SHA1 | Date | |
---|---|---|---|
1a4d4b4e23 | |||
bd7b5e7b1a | |||
737c804d7e | |||
b848629f8d | |||
92ef0041ff | |||
499ad6faa9 |
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ export default class CardDropHelper {
|
||||||
else if (randomRarity < goldChance) cardRarity = CardRarity.Gold;
|
else if (randomRarity < goldChance) cardRarity = CardRarity.Gold;
|
||||||
else cardRarity = CardRarity.Legendary;
|
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);
|
const randomCardIndex = Math.floor(Math.random() * allCards.length);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue