diff options
author | Daniel Schadt <kingdread@gmx.de> | 2018-07-07 03:26:47 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2018-07-07 03:28:10 +0200 |
commit | 32055313bd4ac5a9246ce92fd06156a370e14b17 (patch) | |
tree | b9491e16ce76c602e37b84b5959cedd93ddc0ea9 /src/statistics | |
parent | 22051473844bddb60c8c062f511fd4b1f90d48bd (diff) | |
download | evtclib-32055313bd4ac5a9246ce92fd06156a370e14b17.tar.gz evtclib-32055313bd4ac5a9246ce92fd06156a370e14b17.tar.bz2 evtclib-32055313bd4ac5a9246ce92fd06156a370e14b17.zip |
don't count mechanics which are evaded or blocked
Diffstat (limited to 'src/statistics')
-rw-r--r-- | src/statistics/trackers.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/statistics/trackers.rs b/src/statistics/trackers.rs index 93c7f49..d8a9656 100644 --- a/src/statistics/trackers.rs +++ b/src/statistics/trackers.rs @@ -25,6 +25,8 @@ use super::damage::{DamageLog, DamageType}; use super::gamedata::{self, Mechanic, Trigger}; use super::mechanics::MechanicLog; +use super::super::raw::CbtResult; + use fnv::FnvHashMap; /// A tracker. @@ -389,10 +391,14 @@ impl Tracker for MechanicTracker { source_agent_addr, destination_agent_addr, skill_id, + result, .. }, Trigger::SkillOnPlayer(trigger_id), - ) if skill_id == trigger_id && self.is_boss(*source_agent_addr) => + ) if skill_id == trigger_id + && self.is_boss(*source_agent_addr) + && *result != CbtResult::Evade + && *result != CbtResult::Block => { self.log .increase(event.time, mechanic, *destination_agent_addr); |