"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Conflagration = void 0;
const stats_1 = require("../../../simulation/stats");
const utils_1 = require("../../../utils");
exports.Conflagration = {
    cardIds: ["BG35_910"],
    castTavernSpell: (spellCardId, input) => {
        var _a, _b;
        const mult = 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 baseAttack = (4 + elementalsPlayed) * mult;
        const baseHealth = (4 + elementalsPlayed) * mult;
        const { attack, health } = (0, utils_1.withTavernSpellStatBuff)(input.hero, baseAttack, baseHealth, input.gameState.allCards, input.spellCardId);
        (0, stats_1.modifyStats)(target, input.source, attack, health, input.board, input.hero, input.gameState);
    },
};
//# sourceMappingURL=conflagration.js.map