Exemplo n.º 1
0
  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);
    }
  }
Exemplo n.º 2
0
 public void onAttack() throws GameOverException {
   super.onAttack();
 }