"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.UltravioletAscendant = void 0;
const reference_data_1 = require("@firestone-hs/reference-data");
const stats_1 = require("../../../simulation/stats");
const utils_1 = require("../../../utils");
exports.UltravioletAscendant = {
    cardIds: ["BG31_810", "BG31_810_G"],
    startOfCombat: (minion, input) => {
        var _a, _b;
        const isG = minion.cardId === "BG31_810_G";
        const defaultAtk = isG ? 6 : 3;
        const defaultHp = isG ? 4 : 2;
        const attackBuff = (_a = minion.scriptDataNum1) !== null && _a !== void 0 ? _a : defaultAtk;
        const healthBuff = (_b = minion.scriptDataNum2) !== null && _b !== void 0 ? _b : defaultHp;
        const candidates = input.playerBoard
            .filter((e) => (0, utils_1.hasCorrectTribe)(e, input.playerEntity, reference_data_1.Race.ELEMENTAL, input.gameState.anomalies, input.gameState.allCards))
            .filter((e) => e.entityId !== minion.entityId);
        for (const target of candidates) {
            (0, stats_1.modifyStats)(target, minion, attackBuff, healthBuff, input.playerBoard, input.playerEntity, input.gameState);
        }
        return true;
    },
};
//# sourceMappingURL=ultraviolet-ascendant.js.map