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); }
public override void TickEffect(IGroup affectedGroup) { int damagePerTick = 10; affectedGroup.TakeDamage(damagePerTick); }
public void AttackTargetGroup(IGroup attacker, IGroup target) { target.TakeDamage(attacker.Damage); }