"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LivingAzerite = void 0;
const reference_data_1 = require("@firestone-hs/reference-data");
const stats_1 = require("../../../simulation/stats");
const utils_1 = require("../../../utils");
exports.LivingAzerite = {
    cardIds: ["BG28_707", "BG28_707_G"],
    onTavernSpellCast: (minion, input) => {
        var _a;
        const hasPortrait = (_a = input.hero.trinkets) === null || _a === void 0 ? void 0 : _a.some((t) => t.cardId === "BG30_MagicItem_431");
        if (!hasPortrait)
            return;
        const mult = minion.cardId === "BG28_707_G" ? 2 : 1;
        for (const entity of input.board) {
            if (entity.health <= 0 || entity.definitelyDead)
                continue;
            if ((0, utils_1.hasCorrectTribe)(entity, input.hero, reference_data_1.Race.ELEMENTAL, input.gameState.anomalies, input.gameState.allCards)) {
                (0, stats_1.modifyStats)(entity, minion, 3 * mult, 3 * mult, input.board, input.hero, input.gameState);
            }
        }
    },
};
//# sourceMappingURL=living-azerite.js.map