"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DeepBlues = void 0;
const utils_1 = require("../../../services/utils");
const stats_1 = require("../../../simulation/stats");
exports.DeepBlues = {
    cardIds: ["BG26_502t", "BG26_502_Gt"],
    castTavernSpell: (spellCardId, input) => {
        var _a;
        const mult = spellCardId === "BG26_502t" ? 1 : 2;
        const target = (_a = input.target) !== null && _a !== void 0 ? _a : (0, utils_1.pickRandom)(input.board);
        if (!!target) {
            const currentBuff = input.hero.globalInfo.DeepBluesPlayed + 1;
            input.hero.globalInfo.DeepBluesPlayed++;
            (0, stats_1.modifyStats)(target, input.source, 1 * currentBuff * mult, 2 * currentBuff * mult, input.board, input.hero, input.gameState);
            input.gameState.spectator.registerPowerTarget(input.source, target, input.board, input.hero, input.otherHero);
        }
    },
};
//# sourceMappingURL=deep-blues.js.map