"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SpellboundSoul = void 0;
exports.SpellboundSoul = {
    cardIds: ["BG34_110", "BG34_110_G"],
    onSpawned: (minion, input) => {
        const mult = minion.cardId === "BG34_110_G" ? 2 : 1;
        const totalSpellsCast = input.hero.globalInfo.TavernSpellsCastThisGame;
        if (input.applyAttackAuras) {
            minion.attack += 2 * totalSpellsCast * mult;
        }
        if (input.applyHealthAuras) {
            minion.health += 1 * totalSpellsCast * mult;
        }
    },
    onDespawned: (minion, input) => {
        const mult = minion.cardId === "BG34_110_G" ? 2 : 1;
        const totalSpellsCast = input.hero.globalInfo.TavernSpellsCastThisGame;
        if (input.applyAttackAuras) {
            minion.attack = Math.max(0, minion.attack - 2 * totalSpellsCast * mult);
        }
        if (input.applyHealthAuras) {
            minion.health = Math.max(1, minion.health - 1 * totalSpellsCast * mult);
        }
    },
};
//# sourceMappingURL=spellbound-soul.js.map