public Attack(EvadeEventArgs e) { Timestamp = e.Timestamp; Attacker = e.Attacker; Target = e.Evader; AttackType = e.AttackType; Damage = 0; DamageType = String.Empty; Critical = false; Glancing = false; Blocked = false; Penetrated = false; Absorbed = false; Evaded = true; }
void OnOtherEvadedOther(DateTime timestamp, Match m) { if (Evade != null) { EvadeEventArgs evade = new EvadeEventArgs(); evade.Timestamp = timestamp; evade.Attacker = m.Groups[2].Value; evade.Evader = m.Groups[1].Value; evade.AttackType = m.Groups[3].Value; Evade(null, evade); } }
private void combatParser_Evade(object sender, EvadeEventArgs e) { UpdateEncounter(e.Timestamp); Attack evade = new Attack(e); Character attacker = FindCharacter(e.Attacker); attacker.AddOffensiveEvade(evade); Character target = FindCharacter(e.Evader); target.AddDefensiveEvade(evade); }