fix Bonfire of the Damned and Rakdoss Return to be able to target planeswalkers

This commit is contained in:
igoudt 2018-08-04 20:29:39 +02:00
parent 097569148e
commit d19aa45e89
2 changed files with 4 additions and 2 deletions

View file

@ -16,6 +16,7 @@ import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.players.Player;
import mage.target.TargetPlayer;
import mage.target.common.TargetPlayerOrPlaneswalker;
/**
*
@ -28,7 +29,7 @@ public final class BonfireOfTheDamned extends CardImpl {
// Bonfire of the Damned deals X damage to target player and each creature he or she controls.
this.getSpellAbility().addEffect(new BonfireOfTheDamnedEffect());
this.getSpellAbility().addTarget(new TargetPlayer());
this.getSpellAbility().addTarget(new TargetPlayerOrPlaneswalker());
// Miracle {X}{R}
this.addAbility(new MiracleAbility(this, new ManaCostsImpl("{X}{R}")));

View file

@ -15,6 +15,7 @@ import mage.constants.Outcome;
import mage.game.Game;
import mage.players.Player;
import mage.target.common.TargetOpponent;
import mage.target.common.TargetOpponentOrPlaneswalker;
import mage.target.targetpointer.FixedTarget;
/**
@ -29,7 +30,7 @@ public final class RakdossReturn extends CardImpl {
// Rakdos's Return deals X damage to target opponent. That player discards X cards.
this.getSpellAbility().addEffect(new DamageTargetEffect(new ManacostVariableValue()));
this.getSpellAbility().addEffect(new RakdossReturnEffect());
this.getSpellAbility().addTarget(new TargetOpponent());
this.getSpellAbility().addTarget(new TargetOpponentOrPlaneswalker());
}
public RakdossReturn(final RakdossReturn card) {