"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ScrapsmithPortrait = void 0;
const blood_gems_1 = require("../../../simulation/blood-gems");
exports.ScrapsmithPortrait = {
    cardIds: ["BG35_MagicItem_430"],
    onAfterFriendlyMinionDeath: (listener, input) => {
        const trinket = listener;
        if (!input.deadEntity.taunt) {
            return;
        }
        const scrapsmiths = input.board.filter((e) => e.health > 0 &&
            !e.definitelyDead &&
            (e.cardId === "BG24_707" ||
                e.cardId === "BG24_707_G"));
        for (const scrapsmith of scrapsmiths) {
            (0, blood_gems_1.playBloodGemsOn)(trinket, scrapsmith, 1, input.board, input.hero, input.otherBoard, input.otherHero, input.gameState);
        }
    },
};
//# sourceMappingURL=scrapsmith-portrait.js.map