mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Implemented Waterlogged Grove
This commit is contained in:
parent
7f77fd34a8
commit
e0235d9998
2 changed files with 52 additions and 0 deletions
51
Mage.Sets/src/mage/cards/w/WaterloggedGrove.java
Normal file
51
Mage.Sets/src/mage/cards/w/WaterloggedGrove.java
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
package mage.cards.w;
|
||||||
|
|
||||||
|
import mage.abilities.Ability;
|
||||||
|
import mage.abilities.common.SimpleActivatedAbility;
|
||||||
|
import mage.abilities.costs.common.PayLifeCost;
|
||||||
|
import mage.abilities.costs.common.SacrificeSourceCost;
|
||||||
|
import mage.abilities.costs.common.TapSourceCost;
|
||||||
|
import mage.abilities.costs.mana.GenericManaCost;
|
||||||
|
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||||
|
import mage.abilities.mana.BlueManaAbility;
|
||||||
|
import mage.abilities.mana.GreenManaAbility;
|
||||||
|
import mage.cards.CardImpl;
|
||||||
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.constants.CardType;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author TheElk801
|
||||||
|
*/
|
||||||
|
public final class WaterloggedGrove extends CardImpl {
|
||||||
|
|
||||||
|
public WaterloggedGrove(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
|
||||||
|
|
||||||
|
// {T}, Pay 1 life: Add {G} or {U}.
|
||||||
|
Ability ability = new GreenManaAbility();
|
||||||
|
ability.addCost(new PayLifeCost(1));
|
||||||
|
this.addAbility(ability);
|
||||||
|
ability = new BlueManaAbility();
|
||||||
|
ability.addCost(new PayLifeCost(1));
|
||||||
|
this.addAbility(ability);
|
||||||
|
|
||||||
|
// {1}, {T}, Sacrifice Waterlogged Grove: Draw a card.
|
||||||
|
ability = new SimpleActivatedAbility(
|
||||||
|
new DrawCardSourceControllerEffect(1), new GenericManaCost(1)
|
||||||
|
);
|
||||||
|
ability.addCost(new TapSourceCost());
|
||||||
|
ability.addCost(new SacrificeSourceCost());
|
||||||
|
this.addAbility(ability);
|
||||||
|
}
|
||||||
|
|
||||||
|
private WaterloggedGrove(final WaterloggedGrove card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public WaterloggedGrove copy() {
|
||||||
|
return new WaterloggedGrove(this);
|
||||||
|
}
|
||||||
|
}
|
|
@ -62,6 +62,7 @@ public final class ModernHorizons extends ExpansionSet {
|
||||||
cards.add(new SetCardInfo("Undead Augur", 112, Rarity.UNCOMMON, mage.cards.u.UndeadAugur.class));
|
cards.add(new SetCardInfo("Undead Augur", 112, Rarity.UNCOMMON, mage.cards.u.UndeadAugur.class));
|
||||||
cards.add(new SetCardInfo("Venomous Changeling", 114, Rarity.COMMON, mage.cards.v.VenomousChangeling.class));
|
cards.add(new SetCardInfo("Venomous Changeling", 114, Rarity.COMMON, mage.cards.v.VenomousChangeling.class));
|
||||||
cards.add(new SetCardInfo("Wall of One Thousand Cuts", 36, Rarity.COMMON, mage.cards.w.WallOfOneThousandCuts.class));
|
cards.add(new SetCardInfo("Wall of One Thousand Cuts", 36, Rarity.COMMON, mage.cards.w.WallOfOneThousandCuts.class));
|
||||||
|
cards.add(new SetCardInfo("Waterlogged Grove", 248, Rarity.RARE, mage.cards.w.WaterloggedGrove.class));
|
||||||
cards.add(new SetCardInfo("Wing Shards", 38, Rarity.UNCOMMON, mage.cards.w.WingShards.class));
|
cards.add(new SetCardInfo("Wing Shards", 38, Rarity.UNCOMMON, mage.cards.w.WingShards.class));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue