"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TimewarpedChefsChoice = void 0;
const utils_1 = require("../../../services/utils");
const chefs_choice_1 = require("./chefs-choice");
exports.TimewarpedChefsChoice = {
    cardIds: ["BG34_Treasure_940"],
    castTavernSpell: (_spellCardId, input) => {
        var _a;
        const target = (_a = input.target) !== null && _a !== void 0 ? _a : (0, utils_1.pickRandom)(input.board.filter((e) => e.health > 0 && !e.definitelyDead));
        if (target) {
            (0, chefs_choice_1.addChefsChoiceToHand)(target, input.hero, input.board, input.gameState);
        }
    },
};
//# sourceMappingURL=timewarped-chefs-choice.js.map