Analyse-Tab: Ref-Vergleich nach Job statt Spielername

Fehlende Mitigations werden nun anhand des Job-Typs (z.B. SGE, PLD)
zugeordnet statt per Spielername — funktioniert auch wenn der Referenz-
Fight mit einer anderen Gruppe gespielt wurde.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
xziino 2026-05-22 22:24:44 +02:00
parent 349645f4cb
commit 07a140442f

View File

@ -508,7 +508,7 @@
})() : '';
const currentMitigKeys = new Set((t.mitigations ?? []).map(m => m.key ?? m.name));
const refTarget = refEv?.targets?.find(rt => rt.name === t.name);
const refTarget = refEv?.targets?.find(rt => t.type ? rt.type === t.type : rt.name === t.name);
const missingMitigs = refTarget
? (refTarget.mitigations ?? []).filter(m => m.buffType === 'buff' && !currentMitigKeys.has(m.key ?? m.name))
: [];
@ -561,8 +561,8 @@
(!playerFilter || t.name.toLowerCase().includes(playerFilter))
);
if (refVisible.length) {
const currentByName = {};
ev.targets.forEach(t => { currentByName[t.name] = t; });
const currentByType = {};
ev.targets.forEach(t => { currentByType[t.type || t.name] = t; });
const seenRefDebuffKeys = new Set();
const refDebuffIconsHtml = refVisible.flatMap(t => (t.mitigations ?? []))
@ -575,7 +575,7 @@
}).join('');
const refCards = refVisible.map(t => {
const curr = currentByName[t.name];
const curr = currentByType[t.type || t.name];
const diff = curr ? curr.amount - t.amount : 0;
const dead = t.hp === 0 && t.maxHp > 0;