Exemple #1
0
 private bool IsHit(DamageDice dice)
 {
     if (dice.Value == 1)
         return false;
     else if (dice.Value == 6 || dice.AdjustedValue - this.Shield >= 6)
         return true;
     else
         return false;
 }
Exemple #2
0
 public bool AssignDamage(DamageDice dice)
 {
     if(Health>0 && IsHit(dice))
     {
         dice.IsUsed = true;
         AssignedDamage++;
         return true;
     }
     else
         return false;
 }