"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DraconicWarden = void 0;
const utils_1 = require("../../../services/utils");
const cards_in_hand_1 = require("../../../simulation/cards-in-hand");
const bg352_chromadrake_pool_1 = require("./bg352-chromadrake-pool");
const addChromadrakes = (mult, hero, board, gameState) => {
    for (let i = 0; i < mult; i++) {
        const id = (0, utils_1.pickRandom)(bg352_chromadrake_pool_1.chromadrakeCardIds);
        if (id) {
            (0, cards_in_hand_1.addCardsInHand)(hero, board, [id], gameState);
        }
    }
};
exports.DraconicWarden = {
    cardIds: ["BG34_633", "BG34_633_G"],
    battlecry: (minion, input) => {
        const mult = minion.cardId === "BG34_633_G" ? 2 : 1;
        addChromadrakes(mult, input.hero, input.board, input.gameState);
        return true;
    },
    deathrattleSpawn: (minion, input) => {
        const mult = minion.cardId === "BG34_633_G" ? 2 : 1;
        addChromadrakes(mult, input.boardWithDeadEntityHero, input.boardWithDeadEntity, input.gameState);
        return [];
    },
};
//# sourceMappingURL=draconic-warden.js.map