public override void Attak(Person hit) { if (IsC()) { Console.WriteLine(this.Name + "对" + hit.Name + "造成了暴击!"); hit.HitDamage(this.ATK * 2); } else { base.Attak(hit); } }
public virtual void Attak(Person hit) { Console.WriteLine(this.Name + "对" + hit.Name + "进行一次攻击"); hit.HitDamage(this.ATK); }