"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CataclysmicHarbinger = void 0;
const cards_in_hand_1 = require("../../../simulation/cards-in-hand");
exports.CataclysmicHarbinger = {
    cardIds: ["BG35_123", "BG35_123_G"],
    endOfTurn: (minion, input) => {
        var _a;
        const spellId = (_a = input.hero.globalInfo.LastTavernSpellCardId) !== null && _a !== void 0 ? _a : input.gameState.cardsData.getRandomTavernSpell();
        const copies = minion.cardId === "BG35_123_G" ? 2 : 1;
        (0, cards_in_hand_1.addCardsInHand)(input.hero, input.board, Array(copies).fill(spellId), input.gameState);
    },
};
//# sourceMappingURL=cataclysmic-harbinger.js.map