mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 19:11:59 -08:00
implement [MH3] Waterlogged Teachings // Inundated Archives
This commit is contained in:
parent
c4d12a734a
commit
a0fb32f080
2 changed files with 69 additions and 0 deletions
68
Mage.Sets/src/mage/cards/w/WaterloggedTeachings.java
Normal file
68
Mage.Sets/src/mage/cards/w/WaterloggedTeachings.java
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
package mage.cards.w;
|
||||
|
||||
import mage.abilities.common.EntersBattlefieldTappedAbility;
|
||||
import mage.abilities.effects.common.search.SearchLibraryPutInHandEffect;
|
||||
import mage.abilities.keyword.FlashAbility;
|
||||
import mage.abilities.mana.BlackManaAbility;
|
||||
import mage.abilities.mana.BlueManaAbility;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.cards.ModalDoubleFacedCard;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.filter.predicate.mageobject.AbilityPredicate;
|
||||
import mage.target.common.TargetCardInLibrary;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public final class WaterloggedTeachings extends ModalDoubleFacedCard {
|
||||
|
||||
private static final FilterCard filter = new FilterCard("an instant card or a card with flash");
|
||||
|
||||
static {
|
||||
filter.add(Predicates.or(
|
||||
CardType.INSTANT.getPredicate(),
|
||||
new AbilityPredicate(FlashAbility.class)
|
||||
));
|
||||
}
|
||||
|
||||
public WaterloggedTeachings(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo,
|
||||
new CardType[]{CardType.INSTANT}, new SubType[]{}, "{3}{U/B}",
|
||||
"Inundated Archive", new CardType[]{CardType.LAND}, new SubType[]{}, ""
|
||||
);
|
||||
|
||||
// 1.
|
||||
// Watterlogged Teaching
|
||||
// Instant
|
||||
|
||||
// Search your library for an instant card or a card with flash, reveal it, put it into your hand, then shuffle.
|
||||
this.getLeftHalfCard().getSpellAbility().addEffect(
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true)
|
||||
);
|
||||
|
||||
// 2.
|
||||
// Inundated Archive
|
||||
// Land
|
||||
|
||||
// Inundated Archive enters the battlefield tapped.
|
||||
this.getRightHalfCard().addAbility(new EntersBattlefieldTappedAbility());
|
||||
|
||||
// {T}: Add {U} or {B}.
|
||||
this.getRightHalfCard().addAbility(new BlueManaAbility());
|
||||
this.getRightHalfCard().addAbility(new BlackManaAbility());
|
||||
}
|
||||
|
||||
private WaterloggedTeachings(final WaterloggedTeachings card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public WaterloggedTeachings copy() {
|
||||
return new WaterloggedTeachings(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -104,6 +104,7 @@ public final class ModernHorizons3 extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Urza's Cave", 234, Rarity.UNCOMMON, mage.cards.u.UrzasCave.class));
|
||||
cards.add(new SetCardInfo("Victimize", 278, Rarity.UNCOMMON, mage.cards.v.Victimize.class));
|
||||
cards.add(new SetCardInfo("Warren Soultrader", 110, Rarity.RARE, mage.cards.w.WarrenSoultrader.class));
|
||||
cards.add(new SetCardInfo("Waterlogged Teachings", 261, Rarity.UNCOMMON, mage.cards.w.WaterloggedTeachings.class));
|
||||
cards.add(new SetCardInfo("Wight of the Reliquary", 207, Rarity.RARE, mage.cards.w.WightOfTheReliquary.class));
|
||||
cards.add(new SetCardInfo("Windswept Heath", 235, Rarity.RARE, mage.cards.w.WindsweptHeath.class));
|
||||
cards.add(new SetCardInfo("Winter Moon", 213, Rarity.RARE, mage.cards.w.WinterMoon.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue