mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 12:02:01 -08:00
[MID] Implemented Memory Deluge
This commit is contained in:
parent
af068e2b81
commit
8d26761eb5
2 changed files with 45 additions and 0 deletions
44
Mage.Sets/src/mage/cards/m/MemoryDeluge.java
Normal file
44
Mage.Sets/src/mage/cards/m/MemoryDeluge.java
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
package mage.cards.m;
|
||||
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.dynamicvalue.common.ManaSpentToCastCount;
|
||||
import mage.abilities.dynamicvalue.common.StaticValue;
|
||||
import mage.abilities.effects.common.LookLibraryAndPickControllerEffect;
|
||||
import mage.abilities.keyword.FlashbackAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.StaticFilters;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class MemoryDeluge extends CardImpl {
|
||||
|
||||
public MemoryDeluge(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{U}{U}");
|
||||
|
||||
// Look at the top X cards of your library, where X is the amount of mana spent to cast this spell. Put two of them into your hand and the rest on the bottom of your library in a random order.
|
||||
this.getSpellAbility().addEffect(new LookLibraryAndPickControllerEffect(
|
||||
ManaSpentToCastCount.instance, false, StaticValue.get(2),
|
||||
StaticFilters.FILTER_CARD, Zone.LIBRARY, false, false
|
||||
).setBackInRandomOrder(true).setText("look at the top X cards of your library, where X " +
|
||||
"is the amount of mana spent to cast this spell. Put two of them into your " +
|
||||
"hand and the rest on the bottom of your library in a random order"));
|
||||
|
||||
// Flashback {5}{U}{U}
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{5}{U}{U}")));
|
||||
}
|
||||
|
||||
private MemoryDeluge(final MemoryDeluge card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MemoryDeluge copy() {
|
||||
return new MemoryDeluge(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -193,6 +193,7 @@ public final class InnistradMidnightHunt extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Lunarch Veteran", 27, Rarity.COMMON, mage.cards.l.LunarchVeteran.class));
|
||||
cards.add(new SetCardInfo("Malevolent Hermit", 61, Rarity.RARE, mage.cards.m.MalevolentHermit.class));
|
||||
cards.add(new SetCardInfo("Mask of Griselbrand", 111, Rarity.RARE, mage.cards.m.MaskOfGriselbrand.class));
|
||||
cards.add(new SetCardInfo("Memory Deluge", 62, Rarity.RARE, mage.cards.m.MemoryDeluge.class));
|
||||
cards.add(new SetCardInfo("Might of the Old Ways", 189, Rarity.COMMON, mage.cards.m.MightOfTheOldWays.class));
|
||||
cards.add(new SetCardInfo("Moonsilver Key", 255, Rarity.UNCOMMON, mage.cards.m.MoonsilverKey.class));
|
||||
cards.add(new SetCardInfo("Moonveil Regent", 149, Rarity.MYTHIC, mage.cards.m.MoonveilRegent.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue