mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
Memory Erosion now mills. Closes #9188.
This commit is contained in:
parent
5369d4bd9f
commit
89b74d7ab0
1 changed files with 10 additions and 1 deletions
|
|
@ -5,6 +5,9 @@ import mage.abilities.effects.common.MillCardsTargetEffect;
|
|||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SetTargetPointer;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.StaticFilters;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
|
|
@ -17,7 +20,13 @@ public final class MemoryErosion extends CardImpl {
|
|||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{U}{U}");
|
||||
|
||||
// Whenever an opponent casts a spell, that player puts the top two cards of their library into their graveyard.
|
||||
this.addAbility(new SpellCastOpponentTriggeredAbility(new MillCardsTargetEffect(2), false));
|
||||
this.addAbility(new SpellCastOpponentTriggeredAbility(
|
||||
Zone.BATTLEFIELD,
|
||||
new MillCardsTargetEffect(2),
|
||||
StaticFilters.FILTER_SPELL_A,
|
||||
false,
|
||||
SetTargetPointer.PLAYER
|
||||
));
|
||||
}
|
||||
|
||||
private MemoryErosion(final MemoryErosion card) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue