public override List <AbilityResult> Process(List <Combatant> targets) { List <AbilityResult> results = new List <AbilityResult>(); // It's a physical attack, so let's do some physical damage! if (this.model.PhysicalDamageModifier != 0) { foreach (Combatant target in targets) { results.Add(DamageCalculator.CalculatePhysicalDamage(this.actingCombatant, target, this.model.PhysicalDamageModifier)); } } if (this.model.MagicalDamageModifier != 0) { if (this.model.TargetingType == Spells.Abilities.TargetingType.DEFENSIVE_SINGLE || this.model.TargetingType == Spells.Abilities.TargetingType.DEFENSIVE_ALL) { foreach (Combatant target in targets) { results.Add(DamageCalculator.CalculateHealing(this.actingCombatant, target, this.model.MagicalDamageModifier)); } } else { foreach (Combatant target in targets) { } } } return(results); }