"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OphidianStaff = void 0;
const reference_data_1 = require("@firestone-hs/reference-data");
const stats_1 = require("../../../simulation/stats");
const utils_1 = require("../../../utils");
exports.OphidianStaff = {
    cardIds: ["BG35_MagicItem_872t"],
    castTavernSpell: (_spellCardId, input) => {
        var _a;
        const target = (_a = input.target) !== null && _a !== void 0 ? _a : input.board.find((e) => e.health > 0 &&
            !e.definitelyDead &&
            (0, utils_1.hasCorrectTribe)(e, input.hero, reference_data_1.Race.BEAST, input.gameState.anomalies, input.gameState.allCards));
        if (!target)
            return;
        (0, stats_1.modifyStats)(target, input.source, 4, 4, input.board, input.hero, input.gameState);
        target.reborn = true;
    },
};
//# sourceMappingURL=ophidian-staff.js.map