"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BloodGemQuilboarDivineShieldSpell = void 0;
const reference_data_1 = require("@firestone-hs/reference-data");
const divine_shield_1 = require("../../../keywords/divine-shield");
const blood_gems_1 = require("../../../simulation/blood-gems");
const utils_1 = require("../../../utils");
exports.BloodGemQuilboarDivineShieldSpell = {
    cardIds: ["BG20_GEM_DivineShield"],
    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, divine_shield_1.updateDivineShield)(input.target, input.board, input.hero, input.otherHero, true, input.gameState);
        }
    },
};
//# sourceMappingURL=blood-gem-quilboar-divine-shield.js.map