public void GetDamageFromAttack(Fighter.AttackArgs attackArgs) { if (attackArgs.AttackHit == Fighter.AttackArgs.HitByAttack.Hit) { attackArgs.Target.ActualHp -= attackArgs.Damage; } if (attackArgs.AttackHit == Fighter.AttackArgs.HitByAttack.CriticalHit) { attackArgs.Target.ActualHp -= attackArgs.Damage; } if (attackArgs.AttackHit == Fighter.AttackArgs.HitByAttack.Miss) { attackArgs.Target.ActualHp -= attackArgs.Damage; } }
static void ukaz(object sender, Fighter.AttackArgs e) { Console.WriteLine(sender + " - " + e.AttackHit + " for " + e.Damage + " on " + e.Target); }