mirror of
https://github.com/correl/mage.git
synced 2024-11-24 19:19:56 +00:00
[ONE] Implement The Monumental Facade
This commit is contained in:
parent
73037f710e
commit
a71aa3102b
4 changed files with 73 additions and 0 deletions
70
Mage.Sets/src/mage/cards/t/TheMonumentalFacade.java
Normal file
70
Mage.Sets/src/mage/cards/t/TheMonumentalFacade.java
Normal file
|
@ -0,0 +1,70 @@
|
|||
package mage.cards.t;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.ActivateAsSorceryActivatedAbility;
|
||||
import mage.abilities.common.EntersBattlefieldAbility;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.common.RemoveCountersSourceCost;
|
||||
import mage.abilities.costs.common.TapSourceCost;
|
||||
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
|
||||
import mage.abilities.mana.ColorlessManaAbility;
|
||||
import mage.constants.SubType;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.counters.CounterType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class TheMonumentalFacade extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter
|
||||
= new FilterControlledPermanent("artifact or creature you control");
|
||||
|
||||
static {
|
||||
filter.add(Predicates.or(
|
||||
CardType.ARTIFACT.getPredicate(),
|
||||
CardType.CREATURE.getPredicate()
|
||||
));
|
||||
}
|
||||
|
||||
public TheMonumentalFacade(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
|
||||
|
||||
this.subtype.add(SubType.SPHERE);
|
||||
|
||||
// The Monumental Facade enters the battlefield with two oil counters on it.
|
||||
this.addAbility(new EntersBattlefieldAbility(
|
||||
new AddCountersSourceEffect(CounterType.OIL.createInstance(2)),
|
||||
"with two oil counters on it"
|
||||
));
|
||||
|
||||
// {T}: Add {C}.
|
||||
this.addAbility(new ColorlessManaAbility());
|
||||
|
||||
// {T}, Remove an oil counter from The Monumental Facade: Put an oil counter on target artifact or creature you control. Activate only as a sorcery.
|
||||
Ability ability = new ActivateAsSorceryActivatedAbility(
|
||||
new AddCountersTargetEffect(CounterType.OIL.createInstance()), new TapSourceCost()
|
||||
);
|
||||
ability.addCost(new RemoveCountersSourceCost(CounterType.OIL.createInstance()));
|
||||
ability.addTarget(new TargetPermanent(filter));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private TheMonumentalFacade(final TheMonumentalFacade card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TheMonumentalFacade copy() {
|
||||
return new TheMonumentalFacade(this);
|
||||
}
|
||||
}
|
|
@ -33,6 +33,7 @@ public final class PhyrexiaAllWillBeOne extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Razorverge Thicket", 257, Rarity.RARE, mage.cards.r.RazorvergeThicket.class));
|
||||
cards.add(new SetCardInfo("Seachrome Coast", 258, Rarity.RARE, mage.cards.s.SeachromeCoast.class));
|
||||
cards.add(new SetCardInfo("Swamp", 274, Rarity.LAND, mage.cards.basiclands.Swamp.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("The Monumental Facade", 255, Rarity.RARE, mage.cards.t.TheMonumentalFacade.class));
|
||||
}
|
||||
|
||||
// @Override
|
||||
|
|
|
@ -25,6 +25,7 @@ public enum SubType {
|
|||
GATE("Gate", SubTypeSet.NonBasicLandType),
|
||||
LAIR("Lair", SubTypeSet.NonBasicLandType),
|
||||
LOCUS("Locus", SubTypeSet.NonBasicLandType),
|
||||
SPHERE("Sphere", SubTypeSet.NonBasicLandType),
|
||||
URZAS("Urza's", SubTypeSet.NonBasicLandType),
|
||||
MINE("Mine", SubTypeSet.NonBasicLandType),
|
||||
POWER_PLANT("Power-Plant", SubTypeSet.NonBasicLandType),
|
||||
|
|
|
@ -132,6 +132,7 @@ public enum CounterType {
|
|||
NECRODERMIS("necrodermis"),
|
||||
NET("net"),
|
||||
NIGHT("night"),
|
||||
OIL("oil"),
|
||||
OMEN("omen"),
|
||||
ORE("ore"),
|
||||
P0P1(new BoostCounter(0, 1).name),
|
||||
|
|
Loading…
Reference in a new issue