public void Attack(Ability move, Entity enemy) { uint damage = move.attack(this, enemy); if ((int)(this.currentHealth - damage) <= 0) enemy.currentHealth = 0; this.currentHealth -= (int)damage; }