"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FireForgedEvoker = void 0;
const reference_data_1 = require("@firestone-hs/reference-data");
const stats_1 = require("../../../simulation/stats");
const utils_1 = require("../../../utils");
exports.FireForgedEvoker = {
    cardIds: ["BG32_822", "BG32_822_G"],
    startOfCombat: (minion, input) => {
        var _a, _b, _c;
        const mult = minion.cardId === "BG32_822_G" ? 2 : 1;
        const spells = (_a = input.playerEntity.globalInfo.SpellsCastThisGame) !== null && _a !== void 0 ? _a : 0;
        const atk = (_b = minion.scriptDataNum1) !== null && _b !== void 0 ? _b : mult * (1 + spells);
        const health = (_c = minion.scriptDataNum2) !== null && _c !== void 0 ? _c : mult * (1 + spells);
        const targetBoard = input.playerBoard.filter((e) => (0, utils_1.hasCorrectTribe)(e, input.playerEntity, reference_data_1.Race.DRAGON, input.gameState.anomalies, input.gameState.allCards));
        for (const target of targetBoard) {
            (0, stats_1.modifyStats)(target, minion, atk, health, input.playerBoard, input.playerEntity, input.gameState);
        }
        return { hasTriggered: true, shouldRecomputeCurrentAttacker: false };
    },
};
//# sourceMappingURL=fire-forged-evoker.js.map