"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LorewalkerScroll = void 0;
const stats_1 = require("../../../simulation/stats");
exports.LorewalkerScroll = {
    cardIds: [
        "BG30_MagicItem_422",
        "BG30_MagicItem_422t",
    ],
    onTavernSpellCast: (trinket, input) => {
        if (input.source !== input.hero) {
            return;
        }
        if (!input.target || input.target.health <= 0 || input.target.definitelyDead)
            return;
        const isUpgraded = trinket.cardId === "BG30_MagicItem_422t";
        const attack = isUpgraded ? 7 : 2;
        const health = isUpgraded ? 7 : 1;
        (0, stats_1.modifyStats)(input.target, trinket, attack, health, input.board, input.hero, input.gameState);
    },
};
//# sourceMappingURL=lorewalker-scroll.js.map