"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LuckyTabby = void 0;
const utils_1 = require("../../../services/utils");
const cards_in_hand_1 = require("../../../simulation/cards-in-hand");
exports.LuckyTabby = {
    cardIds: ["BG30_MagicItem_931"],
    onAfterFriendlyMinionDeath: (listener, input) => {
        const trinket = listener;
        if (!trinket.scriptDataNum1) {
            trinket.scriptDataNum1 = 7;
        }
        trinket.scriptDataNum1--;
        if (trinket.scriptDataNum1 === 0) {
            const randomBeast = (0, utils_1.pickRandom)(input.gameState.cardsData.beastSpawns);
            (0, cards_in_hand_1.addCardsInHand)(input.hero, input.board, [randomBeast], input.gameState);
        }
    },
};
//# sourceMappingURL=lucky-tabby.js.map