"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StegodonPortrait = void 0;
const reference_data_1 = require("@firestone-hs/reference-data");
const divine_shield_1 = require("../../../keywords/divine-shield");
const utils_1 = require("../../../utils");
exports.StegodonPortrait = {
    cardIds: ["BG35_MagicItem_702"],
    startOfCombat: (trinket, input) => {
        const beasts = input.playerBoard.filter((e) => (0, utils_1.hasCorrectTribe)(e, input.playerEntity, reference_data_1.Race.BEAST, input.gameState.anomalies, input.gameState.allCards));
        let triggered = false;
        for (let i = 0; i < 2 && i < beasts.length; i++) {
            (0, divine_shield_1.updateDivineShield)(beasts[i], input.playerBoard, input.playerEntity, input.opponentEntity, true, input.gameState);
            triggered = true;
        }
        return { hasTriggered: triggered, shouldRecomputeCurrentAttacker: false };
    },
};
//# sourceMappingURL=stegodon-portrait.js.map