new private void Start() { base.Start(); _attack = new Attack(150, 1.0f, this, 25, (Targetable attackable) => TargetingFunction.IsEnemy(this, attackable)); _massHeal = new MassHeal(240, 1.0f, 0.2f, this, 60f, 75f, (Targetable attackable) => TargetingFunction.IsAllyUnit(this, attackable)); _overtimeHeal = new OvertimeHeal(2f, (Attackable attackable) => TargetingFunction.IsAllyUnit(this, attackable)); _healingAura = new Aura(75f, _overtimeHeal); _healingAura.ApplyOnTarget(this); Skills = new Skill[] { _attack, _massHeal }; }
new private void Start() { base.Start(); List <IOffensiveModifier> modifiers = new List <IOffensiveModifier>(); Defense def = new Defense(0.2f, (Attackable target) => TargetingFunction.IsAlly(this, target)); Aura armorAura = new Aura(80, def); armorAura.ApplyOnTarget(this); ArmorPierce armorPiercing = new ArmorPierce(0.5f); modifiers.Add(armorPiercing); attack = new Attack(0.5f, 1.0f, 0, 1.0f, 45, modifiers, (Attackable attackable) => TargetingFunction.IsEnemy(this, attackable)); _skills = new[] { attack }; }