"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ChargingCzarina = void 0;
const stats_1 = require("../../../simulation/stats");
exports.ChargingCzarina = {
    cardIds: ["BG28_741", "BG28_741_G"],
    onTavernSpellCast: (entity, input) => {
        var _a;
        const mult = entity.cardId === "BG28_741_G" ? 2 : 1;
        const hasPortrait = (_a = input.hero.trinkets) === null || _a === void 0 ? void 0 : _a.some((t) => t.cardId === "BG32_MagicItem_283");
        const healthBuff = hasPortrait ? 3 * mult : 0;
        const targets = input.board.filter((e) => e.divineShield);
        for (const target of targets) {
            (0, stats_1.modifyStats)(target, entity, 3 * mult, healthBuff, input.board, input.hero, input.gameState);
        }
    },
};
//# sourceMappingURL=charging-czarina.js.map