Skip to content

Commit

Permalink
util: fix make_timeline support for split logs (#6049)
Browse files Browse the repository at this point in the history
Without this code, it only finds one fight with `-lf`
  • Loading branch information
quisquous authored Dec 18, 2023
1 parent 70c53a9 commit 857f3fd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions util/logtools/encounter_tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ export class EncounterFinder {

const cZ = this.regex.changeZone.exec(line)?.groups;
if (cZ) {
if (this.currentZone.zoneName === cZ.name) {
// Zoning into the same zone, possibly a d/c situation.
// Don't stop anything?
return;
}
// Note this could happen in the case of a d/c,
// however a log splitting scenario could only include
// the relevant change zone lines and not anything else,
// which is a much more common scenario, so don't check if
// this is the "same zone".

// If we changed zones, we have definitely stopped fighting.
// Therefore we can safely initialize everything.
Expand Down

0 comments on commit 857f3fd

Please sign in to comment.