* Fixed a bug that if all targets (if targets were set) of a spell with an up to target definition (e.g. Adverse Conditions) became illegal the spell did not fizzle as it should.

This commit is contained in:
LevelX2 2015-09-30 00:53:33 +02:00
parent 0d755b3c89
commit 8044940a97
5 changed files with 153 additions and 8 deletions

View file

@ -54,7 +54,7 @@ public class MortuaryMire extends CardImpl {
// When Mortuary Mire enters the battlefield, you may put target creature card from your graveyard on top of your library.
Ability ability = new EntersBattlefieldTriggeredAbility(new PutOnLibraryTargetEffect(true), true);
ability.addTarget(new TargetCardInYourGraveyard(new FilterCreatureCard()));
ability.addTarget(new TargetCardInYourGraveyard(new FilterCreatureCard("creature card from your graveyard")));
this.addAbility(ability);
// {T}: Add {B} to your mana pool.

View file

@ -148,7 +148,7 @@ class FallEffect extends OneShotEffect {
} while (cards.contains(card.getId()));
cards.add(card);
}
targetPlayer.revealCards(sourceObject.getName(), cards, game);
targetPlayer.revealCards(sourceObject.getIdName(), cards, game);
for (Card cardToDiscard : cards.getCards(game)) {
if (!cardToDiscard.getCardType().contains(CardType.LAND)) {
targetPlayer.discard(cardToDiscard, source, game);