"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BristlemaneScrapsmith = void 0;
const cards_in_hand_1 = require("../../../simulation/cards-in-hand");
exports.BristlemaneScrapsmith = {
    cardIds: ["BG24_707", "BG24_707_G"],
    onAfterFriendlyMinionDeath: (listener, input) => {
        if (!input.deadEntity.taunt) {
            return;
        }
        const scrapsmith = listener;
        const gemCount = scrapsmith.cardId === "BG24_707_G" ? 2 : 1;
        const cardsToAdd = Array(gemCount).fill("BG20_GEM");
        (0, cards_in_hand_1.addCardsInHand)(input.hero, input.board, cardsToAdd, input.gameState);
        input.gameState.spectator.registerPowerTarget(scrapsmith, scrapsmith, input.board, input.hero, null);
    },
};
//# sourceMappingURL=bristlemane-scrapsmith.js.map