Implemented Castle Vantress

This commit is contained in:
Evan Kranzler 2019-09-17 08:39:43 -04:00
parent 25eec140e6
commit 5c1a0b2fcd
3 changed files with 62 additions and 2 deletions

View file

@ -0,0 +1,58 @@
package mage.cards.c;
import mage.abilities.Ability;
import mage.abilities.common.EntersBattlefieldAbility;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.condition.Condition;
import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.decorator.ConditionalOneShotEffect;
import mage.abilities.effects.common.TapSourceEffect;
import mage.abilities.effects.keyword.ScryEffect;
import mage.abilities.mana.BlueManaAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.ComparisonType;
import mage.constants.SubType;
import mage.filter.FilterPermanent;
import mage.filter.common.FilterControlledPermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class CastleVantress extends CardImpl {
private static final FilterPermanent filter = new FilterControlledPermanent(SubType.ISLAND);
private static final Condition condition
= new PermanentsOnTheBattlefieldCondition(filter, ComparisonType.EQUAL_TO, 0);
public CastleVantress(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
// Castle Vantress enters the battlefield tapped unless you control an Island.
this.addAbility(new EntersBattlefieldAbility(new ConditionalOneShotEffect(
new TapSourceEffect(), condition
), "tapped unless you control an Island"));
// {T}: Add {U}.
this.addAbility(new BlueManaAbility());
// {2}{U}{U}, {T}: Scry 2.
Ability ability = new SimpleActivatedAbility(new ScryEffect(2), new ManaCostsImpl("{2}{U}{U}"));
ability.addCost(new TapSourceCost());
this.addAbility(ability);
}
private CastleVantress(final CastleVantress card) {
super(card);
}
@Override
public CastleVantress copy() {
return new CastleVantress(this);
}
}

View file

@ -49,6 +49,7 @@ public final class ThroneOfEldraine extends ExpansionSet {
cards.add(new SetCardInfo("Bramblefort Fink", 311, Rarity.UNCOMMON, mage.cards.b.BramblefortFink.class));
cards.add(new SetCardInfo("Brimstone Trebuchet", 116, Rarity.COMMON, mage.cards.b.BrimstoneTrebuchet.class));
cards.add(new SetCardInfo("Burning-Yard Trainer", 117, Rarity.UNCOMMON, mage.cards.b.BurningYardTrainer.class));
cards.add(new SetCardInfo("Castle Vantress", 242, Rarity.RARE, mage.cards.c.CastleVantress.class));
cards.add(new SetCardInfo("Cauldron Familiar", 81, Rarity.UNCOMMON, mage.cards.c.CauldronFamiliar.class));
cards.add(new SetCardInfo("Charming Prince", 8, Rarity.RARE, mage.cards.c.CharmingPrince.class));
cards.add(new SetCardInfo("Chittering Witch", 319, Rarity.RARE, mage.cards.c.ChitteringWitch.class));

View file

@ -36188,6 +36188,7 @@ Sorcerous Spyglass|Throne of Eldraine|233|R|{2}|Artifact|||As Sorcerous Spyglass
Spinning Wheel|Throne of Eldraine|234|U|{3}|Artifact|||{T}: Add one mana of any color.${5}, {T}: Tap target creature.|
Stonecoil Serpent|Throne of Eldraine|235|R|{X}|Artifact Creature - Snake|0|0|Reach, trample, protection from multicolored$Stonecoil Serpent enters the battlefield with X +1/+1 counters on it.|
Witch's Oven|Throne of Eldraine|237|U|{1}|Artifact|||{T}, Sacrifice a creature: Create a Food token. If the sacrificed creature's toughness was 4 or greater, create two Food tokens instead.|
Castle Vantress|Throne of Eldraine|242|R||Land|||Castle Vantress enters the battlefield tapped unless you control an Island.${T}: Add {U}.${2}{U}{U}, {T}: Scry 2.|
Idyllic Grange|Throne of Eldraine|246|C||Land - Plains|||({T}: Add {W}.)$Idyllic Grange enters the battlefield tapped unless you control three or more other Plains.$When Idyllic Grange enters the battlefield untapped, put a +1/+1 counter on target creature you control.|
Tournament Grounds|Throne of Eldraine|248|U||Land|||{T}: Add {C}.${T}: Add {R}, {W}, or {B}. Spend this mana only to cast a Knight or Equipment spell.|
Witch's Cottage|Throne of Eldraine|249|C||Land - Swamp|||({T}: Add {B}.)$Witch's Cottage enters the battlefield tapped unless you control three or more other Swamps.$When Witch's Cottage enters the battlefield untapped, you may put target creature card from your graveyard on top of your library.|