From 2e8818bb03e8957dc6e1191f421d97d663a2e667 Mon Sep 17 00:00:00 2001 From: xziino Date: Sat, 23 May 2026 09:54:49 +0200 Subject: [PATCH] Analyse-Tab: Plan-Ref zeigt Spieler des Plans im Spielerfeld Co-Authored-By: Claude Sonnet 4.6 --- js/analysis.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/js/analysis.js b/js/analysis.js index c02b3b3..696b622 100644 --- a/js/analysis.js +++ b/js/analysis.js @@ -595,7 +595,13 @@ planRefId = id; refEvents = planToRefEvents(plan); refFightStart = plan.source?.fightStart ?? 0; - refPlayers = []; + refPlayers = (plan.jobComposition ?? []) + .map((job, i) => { + const name = plan.playerRoster?.[i]?.name ?? ''; + if (!name || !job) return null; + return { name, type: job, role: PLAN_JOB_ROLE[job] ?? 'dps' }; + }) + .filter(Boolean); renderRefPlayers(); renderTimeline(lastEvents, lastFightStart);