public void onAttack() throws GameOverException {
    super.onAttack();

    int attack = this.card.getAttack();

    damageAllExceptCurrentIndex(attack, opponent);

    CardImage[] enemyCards = opponent.getSlotCards();

    if (enemyCards[slotIndex] != null) {
      // damage the opponent even if there is a card opposite
      damageOpponent(attack);
    }
  }
Exemple #2
0
 public void onAttack() throws GameOverException {
   super.onAttack();
 }