aboutsummaryrefslogtreecommitdiff
path: root/src/analyzers
diff options
context:
space:
mode:
Diffstat (limited to 'src/analyzers')
-rw-r--r--src/analyzers/strikes.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/analyzers/strikes.rs b/src/analyzers/strikes.rs
index 420a674..bc994e4 100644
--- a/src/analyzers/strikes.rs
+++ b/src/analyzers/strikes.rs
@@ -86,7 +86,12 @@ impl<'log> Analyzer for CaptainMaiTrin<'log> {
let scarlet = self.log.characters().find(|npc| {
npc.id() == Self::ECHO_OF_SCARLET_BRIAR || npc.id() == Self::ECHO_OF_SCARLET_BRIAR_CM
- })?;
+ });
+ // If the log ends before Scarlet even spawns, then it for sure is a failure.
+ let scarlet = match scarlet {
+ Some(s) => s,
+ None => return Some(Outcome::Failure),
+ };
let mai = self
.log
.characters()