Planer: Importierte Mitigations um 3s vor die Mechanik verschieben
Beim Report-Import landen alle erkannten Ability-Assignments standardmäßig 3 Sekunden vor dem Mechanik-Timestamp (IMPORT_OFFSET_MS = -3000ms). Linksklick im Gantt und manuelle Zuweisungen bleiben unverändert. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
e40bdbea1c
commit
bb4eb301e0
@ -1828,6 +1828,7 @@ function aoeEventsToMechanics(aoeEvents, fightStart, phases, players, withMitiga
|
||||
? Math.round(relevantTargets.reduce((s, t) => s + t.unmitigatedAmount, 0) / relevantTargets.length)
|
||||
: 0;
|
||||
|
||||
const IMPORT_OFFSET_MS = -3000;
|
||||
let assignments = [];
|
||||
if (withMitigations) {
|
||||
const seen = new Set();
|
||||
@ -1842,6 +1843,7 @@ function aoeEventsToMechanics(aoeEvents, fightStart, phases, players, withMitiga
|
||||
actionId: m.extraAbilityGameID ?? null,
|
||||
job: guessJob(key, players),
|
||||
buffType: m.buffType ?? '',
|
||||
timestamp: Math.max(0, relTs + IMPORT_OFFSET_MS),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user