"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Vinespeaker = void 0;
const reference_data_1 = require("@firestone-hs/reference-data");
const utils_1 = require("../../../utils");
exports.Vinespeaker = {
    cardIds: ["BG35_437", "BG35_437_G"],
    onDeathrattleTriggered: (minion, input) => {
        var _a;
        if (!input.boardWithDeadEntity.some((e) => e.entityId === minion.entityId)) {
            return;
        }
        if (input.deadEntity.friendly !== minion.friendly) {
            return;
        }
        if (!(0, utils_1.hasEntityMechanic)(input.deadEntity, reference_data_1.GameTag.DEATHRATTLE, input.gameState.allCards)) {
            return;
        }
        const mult = minion.cardId === "BG35_437_G" ? 2 : 1;
        const hero = input.boardWithDeadEntityHero;
        hero.globalInfo.BloodGemAttackBonus = ((_a = hero.globalInfo.BloodGemAttackBonus) !== null && _a !== void 0 ? _a : 0) + 1 * mult;
    },
};
//# sourceMappingURL=vinespeaker.js.map