"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ScrapScraper = void 0;
const utils_1 = require("../../../services/utils");
const cards_in_hand_1 = require("../../../simulation/cards-in-hand");
exports.ScrapScraper = {
    cardIds: ["BG26_148", "BG26_148_G"],
    deathrattleEffect: (deadEntity, input) => {
        const { boardWithDeadEntity, boardWithDeadEntityHero, gameState } = input;
        const scraperToAddQuantity = deadEntity.cardId === "BG26_148_G" ? 2 : 1;
        const scraperCardsToAdd = [];
        for (let i = 0; i < scraperToAddQuantity; i++) {
            scraperCardsToAdd.push((0, utils_1.pickRandom)(gameState.cardsData.scrapScraperSpawns));
        }
        (0, cards_in_hand_1.addCardsInHand)(boardWithDeadEntityHero, boardWithDeadEntity, scraperCardsToAdd, gameState);
    },
};
//# sourceMappingURL=scrap-scraper.js.map