Fixed not mandatory target of Consuming Vapors.

This commit is contained in:
LevelX2 2013-04-20 20:00:50 +02:00
parent 75ca4eb3e3
commit 01a610746b

View file

@ -58,8 +58,12 @@ public class ConsumingVapors extends CardImpl<ConsumingVapors> {
this.expansionSetCode = "ROE"; this.expansionSetCode = "ROE";
this.color.setBlack(true); this.color.setBlack(true);
// Target player sacrifices a creature. You gain life equal to that creature's toughness.
this.getSpellAbility().addEffect(new ConsumingVaporsEffect()); this.getSpellAbility().addEffect(new ConsumingVaporsEffect());
this.getSpellAbility().addTarget(new TargetPlayer()); this.getSpellAbility().addTarget(new TargetPlayer());
// Rebound (If you cast this spell from your hand, exile it as it resolves. At the beginning of your next upkeep, you may cast this card from exile without paying its mana cost.)
this.addAbility(new ReboundAbility()); this.addAbility(new ReboundAbility());
} }
@ -92,7 +96,8 @@ class ConsumingVaporsEffect extends OneShotEffect<ConsumingVaporsEffect> {
FilterControlledPermanent filter = new FilterControlledPermanent("creature"); FilterControlledPermanent filter = new FilterControlledPermanent("creature");
filter.add(new CardTypePredicate(CardType.CREATURE)); filter.add(new CardTypePredicate(CardType.CREATURE));
filter.add(new ControllerPredicate(TargetController.YOU)); filter.add(new ControllerPredicate(TargetController.YOU));
TargetControlledPermanent target = new TargetControlledPermanent(1, 1, filter, false); TargetControlledPermanent target = new TargetControlledPermanent(1, 1, filter, true);
target.setRequired(true);
//A spell or ability could have removed the only legal target this player //A spell or ability could have removed the only legal target this player
//had, if thats the case this ability should fizzle. //had, if thats the case this ability should fizzle.