From 32055313bd4ac5a9246ce92fd06156a370e14b17 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Sat, 7 Jul 2018 03:26:47 +0200 Subject: don't count mechanics which are evaded or blocked --- src/statistics/trackers.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/statistics/trackers.rs') 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); -- cgit v1.2.3