"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BloodGemQuilboarRebornSpell = void 0;
const reference_data_1 = require("@firestone-hs/reference-data");
const reborn_1 = require("../../../keywords/reborn");
const blood_gems_1 = require("../../../simulation/blood-gems");
const utils_1 = require("../../../utils");
exports.BloodGemQuilboarRebornSpell = {
    cardIds: ["BG20_GEM_Reborn"],
    castTavernSpell: (spellCardId, input) => {
        const mult = 1;
        (0, blood_gems_1.playBloodGemsOn)(input.source, input.target, mult, input.board, input.hero, input.otherBoard, input.otherHero, input.gameState);
        if ((0, utils_1.hasCorrectTribe)(input.target, input.hero, reference_data_1.Race.QUILBOAR, input.gameState.anomalies, input.gameState.allCards)) {
            (0, reborn_1.updateReborn)(input.target, true, input.board, input.hero, input.otherHero, input.gameState);
        }
    },
};
//# sourceMappingURL=blood-gem-quilboar-reborn.js.map