Compare commits

..

6 commits

Author SHA1 Message Date
Ethan Lane 1a4d4b4e23 Merge branch 'hotfix/0.1.1' into develop
All checks were successful
continuous-integration/drone/push Build is passing
2023-09-05 19:14:40 +01:00
Ethan Lane bd7b5e7b1a Temporary force legendary
All checks were successful
continuous-integration/drone/push Build is passing
2023-09-05 19:14:12 +01:00
Ethan Lane 737c804d7e 0.1.1
All checks were successful
continuous-integration/drone/push Build is passing
2023-09-04 13:00:51 +01:00
Ethan Lane b848629f8d Fix gifs not working
All checks were successful
continuous-integration/drone/push Build is passing
2023-09-04 12:59:09 +01:00
Ethan Lane 92ef0041ff v0.1.0
All checks were successful
continuous-integration/drone/push Build is passing
2023-09-03 21:12:59 +01:00
Ethan Lane 499ad6faa9 Set to 0.0.1 2023-09-03 21:12:47 +01:00

View file

@ -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);