"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"],
    onAfterFriendlyMinionDeath: (minion, input) => {
        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;
        input.hero.globalInfo.BloodGemAttackBonus += 1 * mult;
        const portraits = input.hero.trinkets.filter((t) => t.cardId === "BG35_MagicItem_433");
        if (portraits.length > 0) {
            input.hero.globalInfo.BloodGemHealthBonus += 1 * mult;
        }
    },
};
//# sourceMappingURL=vinespeaker.js.map