Fixed #spellshop not giving properly randomized spells

This commit is contained in:
raeleus 2025-04-03 22:38:47 -07:00
parent 83790f66e0
commit 737b2aa335
2 changed files with 3 additions and 2 deletions

View file

@ -1094,7 +1094,6 @@ function spellShopPushDeal(items, name, price) {
price: price,
bought: false
})
if (!state.spellShopAll) items.splice(index, 1)
}
var spellShopSeed
@ -1111,6 +1110,7 @@ function spellShopSelectSpells(spells, price, numberOfSpells) {
return
}
shuffle(spells, spellShopSeed)
for (let i = 0; i < numberOfSpells; i++) {
spellShopPushDeal(spells, spells[i], price)
}