Burn: Added card burning for notes and gems

This commit is contained in:
2022-09-26 16:09:23 +02:00
parent bbbcaaaf29
commit 16bb46403b
9 changed files with 183 additions and 30 deletions

View File

@@ -51,7 +51,7 @@ module.exports = {
let slots = ['slotOne', 'slotTwo', 'slotThree', 'slotFour'];
let renderedCards = [];
for (slot of slots) {
let card = await Card.findOne({ where: { id: profile[slot] }});
let card = await Card.findOne({ where: { id: profile[slot], burned: false } });
if (card) {
let cardImage = await Rendering.renderCard(card);
renderedCards.push(cardImage);