public void Attack(ITarget target)
 {
     if (TryShot())
     {
         target.AcceptDamage();
     }
 }
예제 #2
0
        public void Attack(ITarget target)
        {
            if (!IsAlive)
            {
                return;
            }

            if (Model.GetRandom() < _accuracy)
            {
                target.AcceptDamage();
            }
        }