"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CoralSpear = void 0;
const reference_data_1 = require("@firestone-hs/reference-data");
const cast_tavern_spell_1 = require("../../../mechanics/cast-tavern-spell");
exports.CoralSpear = {
    cardIds: ["BG35_MagicItem_925"],
    onTavernSpellCast: (trinket, input) => {
        if (input.source !== input.hero) {
            return;
        }
        const spellCard = input.gameState.allCards.getCard(input.spellCardId);
        if ((spellCard === null || spellCard === void 0 ? void 0 : spellCard.spellSchool) !== reference_data_1.SpellSchool[reference_data_1.SpellSchool.SPELLCRAFT])
            return;
        (0, cast_tavern_spell_1.castTavernSpell)("BG35_951", {
            ...input,
            spellCardId: "BG35_951",
            source: input.hero,
        });
    },
};
//# sourceMappingURL=coral-spear.js.map