From b60cc8a987c5adc9bed0b15b91e915fc0e21c6a6 Mon Sep 17 00:00:00 2001 From: roberts Date: Mon, 30 Mar 2026 14:25:24 -0500 Subject: [PATCH] Add combat debug logging (gameMode, target id, distance) Co-Authored-By: Claude Opus 4.6 (1M context) --- bridge/src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/bridge/src/index.js b/bridge/src/index.js index ca36d23..eb841f2 100644 --- a/bridge/src/index.js +++ b/bridge/src/index.js @@ -583,6 +583,7 @@ async function handleAction(action, params = {}) { if (hostiles.length === 0) return { attacked: false, reason: 'no_hostiles' }; hostiles.sort((a, b) => a.dist - b.dist); const target = hostiles[0].entity; + log('client', 'INFO', `Engaging ${target.name || target.type} (id=${target.id}, dist=${hostiles[0].dist.toFixed(1)}, gameMode=${bot.game?.gameMode})`); // Sustained combat: keep attacking until target is dead or out of range let hits = 0;