"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BubbleCrown = void 0;
const reference_data_1 = require("@firestone-hs/reference-data");
exports.BubbleCrown = {
    cardIds: ["BG35_MagicItem_920"],
    onBeforeTavernSpellCast: (trinket, input) => {
        var _a, _b;
        if (((_a = trinket.tags) === null || _a === void 0 ? void 0 : _a[reference_data_1.GameTag.TRIGGER_VISUAL]) === 0) {
            return;
        }
        trinket.scriptDataNum1 = ((_b = trinket.scriptDataNum1) !== null && _b !== void 0 ? _b : 0) - 1;
        if (trinket.scriptDataNum1 <= 0) {
            trinket.scriptDataNum1 = 10;
            input.hero.globalInfo.TavernSpellAttackBuff += 4;
            input.hero.globalInfo.TavernSpellHealthBuff += 4;
            trinket.tags[reference_data_1.GameTag.TRIGGER_VISUAL] = 0;
        }
    },
};
//# sourceMappingURL=bubble-crown.js.map