diff options
author | Daniel <kingdread@gmx.de> | 2018-09-07 01:28:28 +0200 |
---|---|---|
committer | Daniel <kingdread@gmx.de> | 2018-09-07 01:28:28 +0200 |
commit | af3ab806a94f3654f411925e6917a9ea1250856b (patch) | |
tree | de7f66b53e917e31759da0a5f74dfb619b1c2b51 | |
parent | f0d95b03542ce87cd3c897a63a7bfbcc3be6dc2c (diff) | |
download | raidgrep-af3ab806a94f3654f411925e6917a9ea1250856b.tar.gz raidgrep-af3ab806a94f3654f411925e6917a9ea1250856b.tar.bz2 raidgrep-af3ab806a94f3654f411925e6917a9ea1250856b.zip |
better fight outcome detection
-rw-r--r-- | src/main.rs | 6 |
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 |