Skip to content

Commit 1f7c55b

Browse files
committed
fix kaz g2-1 tfm logs not being saved
1 parent 59f135a commit 1f7c55b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src-tauri/src/live/encounter_state.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@ impl EncounterState {
206206
}
207207

208208
pub fn on_transit(&mut self, zone_id: u32) {
209-
// do not reset on kazeros g2
210-
if matches!(zone_id, 37544 | 37545 | 37546) && self.raid_difficulty != "The First" {
211-
if zone_id == 37545 {
209+
if zone_id == 37545 {
210+
// do not reset on kazeros g2-2 for nm/hm
211+
if self.raid_difficulty != "The First" {
212212
let now = Utc::now().timestamp_millis();
213213
self.intermission_start = Some(now);
214214
info!("starting intermission");
@@ -227,8 +227,9 @@ impl EncounterState {
227227
death.dead_for = Some(now - death.death_time);
228228
}
229229
}
230+
} else {
231+
self.on_phase_transition(2);
230232
}
231-
232233
return;
233234
}
234235

@@ -1118,7 +1119,6 @@ impl EncounterState {
11181119
}
11191120
}
11201121

1121-
11221122
pub fn on_support_combat_analyzer_data(
11231123
&mut self,
11241124
events: Vec<SupportCombatAnalyzerEvent>,

0 commit comments

Comments
 (0)