예제 #1
0
 public void TakeDamage(int damage)
 {
     if (blocking)
     {
         Health -= shield.Block(damage);
     }
     else if (!blocking)
     {
         Health -= damage;
     }
     Heal(armor.Ability());
 }