"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConflagrationBg352 = void 0;
const stats_1 = require("../../../simulation/stats");
exports.ConflagrationBg352 = {
    cardIds: ["BG35_910", "BG35_910_G"],
    castTavernSpell: (spellCardId, input) => {
        var _a, _b;
        const mult = spellCardId === "BG35_910_G" ? 2 : 1;
        const target = (_a = input.target) !== null && _a !== void 0 ? _a : input.board.find((e) => e.health > 0 && !e.definitelyDead);
        if (!target) {
            return;
        }
        const elementalsPlayed = (_b = input.hero.globalInfo.ElementalsPlayedThisTurn) !== null && _b !== void 0 ? _b : 0;
        const attack = (4 + elementalsPlayed) * mult;
        const health = (4 + elementalsPlayed) * mult;
        (0, stats_1.modifyStats)(target, input.source, attack, health, input.board, input.hero, input.gameState);
    },
};
//# sourceMappingURL=conflagration-bg352.js.map