"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Beetle = void 0;
const stats_1 = require("../../../simulation/stats");
exports.Beetle = {
    cardIds: ["BG28_603t", "BG28_603t_G"],
    onSpawned: (minion, input) => {
        var _a, _b;
        (0, stats_1.modifyStats)(minion, minion, input.applyAttackAuras ? 1 * ((_a = input.hero.globalInfo.BeetleAttackBuff) !== null && _a !== void 0 ? _a : 0) : 0, input.applyHealthAuras ? 1 * ((_b = input.hero.globalInfo.BeetleHealthBuff) !== null && _b !== void 0 ? _b : 0) : 0, input.board, input.hero, input.gameState, false);
    },
    onDespawned: (minion, input) => {
        if (input.applyAttackAuras) {
            minion.attack = Math.max(0, minion.attack - input.hero.globalInfo.BeetleAttackBuff);
        }
        if (input.applyHealthAuras) {
            minion.health = Math.max(1, minion.health - input.hero.globalInfo.BeetleHealthBuff);
        }
    },
};
//# sourceMappingURL=beetle.js.map