aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index 567991d..c70a62a 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -220,10 +220,8 @@ fn get_start_timestamp(log: &Log) -> u32 {
fn get_fight_outcome(log: &Log) -> FightOutcome {
for event in log.events() {
- if let EventKind::ChangeDead { agent_addr } = event.kind {
- if log.is_boss(agent_addr) {
- return FightOutcome::Success;
- }
+ if let EventKind::Reward { .. } = event.kind {
+ return FightOutcome::Success;
}
}
FightOutcome::Wipe