Exemple #1
0
        public void AttackTargetGroup(IGroup attacker, IGroup target)
        {
            int halfHealthDamage = attacker.HealthPoints / 2;
            attacker.TakeDamage(halfHealthDamage);

            if (attacker.HealthPoints < 1)
            {
                attacker.HealthPoints = 1;
            }

            int doubledAttackerDamage = attacker.Damage * 2;
            target.TakeDamage(doubledAttackerDamage);
        }
Exemple #2
0
        public override void TickEffect(IGroup affectedGroup)
        {
            int damagePerTick = 10;

            affectedGroup.TakeDamage(damagePerTick);
        }
Exemple #3
0
 public void AttackTargetGroup(IGroup attacker, IGroup target)
 {
     target.TakeDamage(attacker.Damage);
 }