"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EnchantedSentinel = void 0;
const applyTavernSpellBuffFromSentinel = (entity, hero) => {
    var _a, _b;
    const mult = entity.cardId === "BG35_341_G" ? 2 : 1;
    hero.globalInfo.TavernSpellAttackBuff = ((_a = hero.globalInfo.TavernSpellAttackBuff) !== null && _a !== void 0 ? _a : 0) + 1 * mult;
    hero.globalInfo.TavernSpellHealthBuff = ((_b = hero.globalInfo.TavernSpellHealthBuff) !== null && _b !== void 0 ? _b : 0) + 1 * mult;
};
exports.EnchantedSentinel = {
    cardIds: ["BG35_341", "BG35_341_G"],
    onSpawned: (minion, input) => {
        applyTavernSpellBuffFromSentinel(minion, input.hero);
    },
    onBeforeMagnetizeSelf: (entity, input) => {
        applyTavernSpellBuffFromSentinel(entity, input.hero);
    },
};
//# sourceMappingURL=enchanted-sentinel.js.map