"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StormcoilSticker = void 0;
const reference_data_1 = require("@firestone-hs/reference-data");
const cards_in_hand_1 = require("../../../simulation/cards-in-hand");
exports.StormcoilSticker = {
    cardIds: ["BG35_MagicItem_302"],
    onAfterFriendlyMinionDeath: (listener, input) => {
        var _a;
        const trinket = listener;
        trinket.scriptDataNum1 = (trinket.scriptDataNum1 || 0) + 1;
        if (trinket.scriptDataNum1 >= 7) {
            trinket.scriptDataNum1 = 0;
            const randomMech = input.gameState.cardsData.getRandomMinionForTribe(reference_data_1.Race.MECH, (_a = input.hero.tavernTier) !== null && _a !== void 0 ? _a : 6, []);
            if (randomMech) {
                (0, cards_in_hand_1.addCardsInHand)(input.hero, input.board, [randomMech], input.gameState);
            }
        }
    },
};
//# sourceMappingURL=stormcoil-sticker.js.map