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); } }
public void onAttack() throws GameOverException { super.onAttack(); }