"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Colossus = void 0;
const attack_1 = require("../../../simulation/attack");
exports.Colossus = {
    cardIds: ["BG31_HERO_802pt", "BG31_HERO_802pt_G"],
    rally: (minion, input) => {
        if (!input.defendingEntity) {
            return { dmgDoneByAttacker: 0, dmgDoneByDefender: 0 };
        }
        let dmgDoneByAttacker = 0;
        const neighbours = (0, attack_1.getNeighbours)(input.defendingBoard, input.defendingEntity);
        const damage = minion.scriptDataNum2 || 2;
        for (const target of neighbours) {
            const dmg = (0, attack_1.dealDamageToMinion)(target, input.defendingBoard, input.defendingHero, input.attacker, damage, input.attackingBoard, input.attackingHero, input.gameState);
            dmgDoneByAttacker += dmg;
        }
        return { dmgDoneByAttacker, dmgDoneByDefender: 0 };
    },
};
//# sourceMappingURL=colossus.js.map