Esempio n. 1
0
		void OnOtherHealed(DateTime timestamp, Match m)
		{
			if (Heal != null)
			{
				HealEventArgs heal = new HealEventArgs();
				heal.Timestamp = timestamp;
				heal.Healer = m.Groups[2].Value;
				heal.Target = m.Groups[4].Value;
				heal.HealType = m.Groups[3].Value;

				uint amount;
				if (uint.TryParse(m.Groups[5].Value, out amount))
					heal.Amount = amount;

				string critical = m.Groups[1].Value;
				if (!String.IsNullOrEmpty(critical) && critical.Equals("Critical"))
					heal.Critical = true;
				else
					heal.Critical = false;

				Heal(null, heal);
			}
		}
Esempio n. 2
0
		private void combatParser_Heal(object sender, HealEventArgs e)
		{
			UpdateEncounter(e.Timestamp);

			Heal heal = new Heal(e);
			Character healer = FindCharacter(e.Healer);
			healer.AddOffensiveHeal(heal);

			Character healed = FindCharacter(e.Target);
			healed.AddDefensiveHeal(heal);
		}