"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GlowscalePortrait = void 0;
const reference_data_1 = require("@firestone-hs/reference-data");
const stats_1 = require("../../../simulation/stats");
exports.GlowscalePortrait = {
    cardIds: ["BG30_MagicItem_548"],
    afterTavernSpellCast: (trinket, input) => {
        const spellCard = input.gameState.allCards.getCard(input.spellCardId);
        if ((spellCard === null || spellCard === void 0 ? void 0 : spellCard.spellSchool) !== reference_data_1.SpellSchool[reference_data_1.SpellSchool.SPELLCRAFT])
            return;
        for (const entity of input.board) {
            if (entity.health <= 0 || entity.definitelyDead)
                continue;
            if (entity.divineShield) {
                (0, stats_1.modifyStats)(entity, trinket, 3, 3, input.board, input.hero, input.gameState);
            }
        }
    },
};
//# sourceMappingURL=glowscale-portrait.js.map