"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FangAnklet = void 0;
const reference_data_1 = require("@firestone-hs/reference-data");
const global_info_helpers_1 = require("../../../simulation/global-info-helpers");
const stats_1 = require("../../../simulation/stats");
const utils_1 = require("../../../utils");
exports.FangAnklet = {
    cardIds: ["BG35_MagicItem_701"],
    startOfCombat: (trinket, input) => {
        const buff = trinket.scriptDataNum1 || 1;
        let triggered = false;
        for (const entity of input.playerBoard) {
            if ((0, utils_1.hasCorrectTribe)(entity, input.playerEntity, reference_data_1.Race.BEAST, input.gameState.anomalies, input.gameState.allCards)) {
                (0, stats_1.modifyStats)(entity, trinket, buff, buff, input.playerBoard, input.playerEntity, input.gameState);
                triggered = true;
            }
        }
        input.playerEntity.globalInfo.GoldrinnBuffAtk += buff;
        input.playerEntity.globalInfo.GoldrinnBuffHealth += buff;
        return { hasTriggered: triggered, shouldRecomputeCurrentAttacker: false };
    },
    afterOtherSpawned: (trinket, input) => {
        if ((0, utils_1.hasCorrectTribe)(input.spawned, input.hero, reference_data_1.Race.BEAST, input.gameState.anomalies, input.gameState.allCards)) {
            (0, global_info_helpers_1.increaseGoldrinnBuff)(trinket, input.board, input.hero, 1, 1, input.gameState);
            trinket.scriptDataNum1 = (trinket.scriptDataNum1 || 1) + 1;
        }
    },
};
//# sourceMappingURL=fang-anklet.js.map