mirror of
https://github.com/magefree/mage.git
synced 2025-12-30 07:22:03 -08:00
* 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:
parent
0d755b3c89
commit
8044940a97
5 changed files with 153 additions and 8 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue