"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ChoralMrrrglr = void 0;
const stats_1 = require("../../../simulation/stats");
exports.ChoralMrrrglr = {
    cardIds: ["BG26_354", "BG26_354_G"],
    startOfCombatTiming: 'start-of-combat',
    startOfCombat: (minion, input) => {
        var _a, _b, _c, _d;
        const multiplier = minion.cardId === "BG26_354_G" ? 2 : 1;
        const totalAttackInHand = (_b = (_a = input.playerEntity.hand) === null || _a === void 0 ? void 0 : _a.map((e) => { var _a; return (_a = e.attack) !== null && _a !== void 0 ? _a : 0; }).reduce((a, b) => a + b, 0)) !== null && _b !== void 0 ? _b : 0;
        const totalHealthInHand = (_d = (_c = input.playerEntity.hand) === null || _c === void 0 ? void 0 : _c.map((e) => { var _a; return (_a = e.health) !== null && _a !== void 0 ? _a : 0; }).reduce((a, b) => a + b, 0)) !== null && _d !== void 0 ? _d : 0;
        const attackBuff = multiplier *
            (totalAttackInHand || (minion.gildedInCombat ? 0 : input.playerEntity.globalInfo.ChoralAttackBuff) || 0);
        const healthBuff = multiplier *
            (totalHealthInHand || (minion.gildedInCombat ? 0 : input.playerEntity.globalInfo.ChoralHealthBuff) || 0);
        (0, stats_1.modifyStats)(minion, minion, attackBuff, healthBuff, input.playerBoard, input.playerEntity, input.gameState);
        return true;
    },
};
//# sourceMappingURL=choral-mrrrglr.js.map