"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SilkyShimmermoth = void 0;
const deathrattle_spawns_1 = require("../../../simulation/deathrattle-spawns");
const stats_1 = require("../../../simulation/stats");
exports.SilkyShimmermoth = {
    cardIds: ["BG32_204", "BG32_204_G"],
    onDamaged: (minion, input) => {
        if (input.damagedEntity !== minion) {
            return;
        }
        const mult = minion.cardId === "BG32_204" ? 1 : 2;
        input.hero.globalInfo.BeetleAttackBuff += 2 * mult;
        input.hero.globalInfo.BeetleHealthBuff += 2 * mult;
        input.board
            .filter((e) => ["BG28_603t", "BG28_603t_G"].includes(e.cardId))
            .forEach((e) => {
            (0, stats_1.modifyStats)(e, minion, 2 * mult, 2 * mult, input.board, input.hero, input.gameState);
        });
    },
    deathrattleSpawn: (minion, input) => {
        const mult = minion.cardId === "BG32_204" ? 1 : 2;
        return (0, deathrattle_spawns_1.simplifiedSpawnEntities)("BG28_603t", 1 * mult, input);
    },
};
//# sourceMappingURL=silky-shimmermoth.js.map