mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
Fixed Matter Reshaper not working
This commit is contained in:
parent
00b4d8d482
commit
b217f86553
1 changed files with 11 additions and 10 deletions
|
@ -91,17 +91,18 @@ class MatterReshaperEffect extends OneShotEffect {
|
|||
if (controller != null) {
|
||||
Card card = controller.getLibrary().getFromTop(game);
|
||||
if (card == null) {
|
||||
controller.revealCards(source, new CardsImpl(card), game);
|
||||
FilterPermanentCard filter = new FilterPermanentCard("permanent card with converted mana cost 3 or less");
|
||||
filter.add(new ConvertedManaCostPredicate(ComparisonType.FEWER_THAN, 4));
|
||||
if (filter.match(card, game)) {
|
||||
if (controller.chooseUse(Outcome.PutCardInPlay, "Put " + card.getName() + " onto the battlefield (otherwise put in hand)?", source, game)) {
|
||||
controller.moveCards(card, Zone.BATTLEFIELD, source, game);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
controller.moveCards(card, Zone.HAND, source, game);
|
||||
return false;
|
||||
}
|
||||
controller.revealCards(source, new CardsImpl(card), game);
|
||||
FilterPermanentCard filter = new FilterPermanentCard("permanent card with converted mana cost 3 or less");
|
||||
filter.add(new ConvertedManaCostPredicate(ComparisonType.FEWER_THAN, 4));
|
||||
if (filter.match(card, game)) {
|
||||
if (controller.chooseUse(Outcome.PutCardInPlay, "Put " + card.getName() + " onto the battlefield (otherwise put in hand)?", source, game)) {
|
||||
controller.moveCards(card, Zone.BATTLEFIELD, source, game);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
controller.moveCards(card, Zone.HAND, source, game);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue