"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.VeryHungryWinterfinner = void 0;
const reference_data_1 = require("@firestone-hs/reference-data");
const utils_1 = require("../../../services/utils");
const stats_1 = require("../../../simulation/stats");
exports.VeryHungryWinterfinner = {
    cardIds: ["BG29_300", "BG29_300_G"],
    onDamaged: (minion, input) => {
        const mult = minion.cardId === "BG29_300_G" ? 2 : 1;
        const handMinions = input.hero.hand.filter((c) => { var _a; return ((_a = input.gameState.allCards.getCard(c.cardId).type) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === reference_data_1.CardType[reference_data_1.CardType.MINION]; });
        const target = (0, utils_1.pickRandom)(handMinions);
        if (target) {
            (0, stats_1.modifyStats)(target, minion, 2 * mult, 1 * mult, input.board, input.hero, input.gameState);
        }
    },
};
//# sourceMappingURL=very-hungry-winterfinner.js.map