"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.increaseGoldrinnBuff = exports.increasePirateAttackBonus = exports.increaseUndeadAttackBonus = void 0;
const reference_data_1 = require("@firestone-hs/reference-data");
const utils_1 = require("../utils");
const increaseUndeadAttackBonus = (source, board, hero, amount, gameState, countsAsStatsGain = false) => {
    var _a;
    hero.globalInfo.UndeadAttackBonus = ((_a = hero.globalInfo.UndeadAttackBonus) !== null && _a !== void 0 ? _a : 0) + amount;
    (0, utils_1.addStatsToBoard)(source, board, hero, amount, 0, gameState, reference_data_1.Race[reference_data_1.Race.UNDEAD], countsAsStatsGain);
};
exports.increaseUndeadAttackBonus = increaseUndeadAttackBonus;
const increasePirateAttackBonus = (source, board, hero, amount, gameState) => {
    var _a;
    hero.globalInfo.PirateAttackBonus = ((_a = hero.globalInfo.PirateAttackBonus) !== null && _a !== void 0 ? _a : 0) + amount;
    (0, utils_1.addStatsToBoard)(source, board, hero, amount, 0, gameState, reference_data_1.Race[reference_data_1.Race.PIRATE], false);
};
exports.increasePirateAttackBonus = increasePirateAttackBonus;
const increaseGoldrinnBuff = (source, board, hero, attack, health, gameState) => {
    var _a, _b;
    hero.globalInfo.GoldrinnBuffAtk = ((_a = hero.globalInfo.GoldrinnBuffAtk) !== null && _a !== void 0 ? _a : 0) + attack;
    hero.globalInfo.GoldrinnBuffHealth = ((_b = hero.globalInfo.GoldrinnBuffHealth) !== null && _b !== void 0 ? _b : 0) + health;
    (0, utils_1.addStatsToBoard)(source, board, hero, attack, health, gameState, reference_data_1.Race[reference_data_1.Race.BEAST]);
};
exports.increaseGoldrinnBuff = increaseGoldrinnBuff;
//# sourceMappingURL=global-info-helpers.js.map