Exemple #1
0
  public void onSummoned() throws GameOverException {
    super.onSummoned();

    int power = owner.getPlayerInfo().getStrengthFire();
    if (power > 10) power = 10;

    damageAll(opponent, power);
    damageOpponent(power);
  }
  public void onDying() throws GameOverException {
    super.onDying();

    try {

      SlotImage[] slots = owner.getSlots();

      addCreature("DemonApostate", slotIndex, slots[slotIndex]);

    } catch (Exception e) {
      e.printStackTrace();
    }
  }
  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 #4
0
 public void onAttack() throws GameOverException {
   super.onAttack();
 }
 public void onSummoned() throws GameOverException {
   super.onSummoned();
 }