Tabnine Logo
ColorlessManaAbility.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
mage.abilities.mana.ColorlessManaAbility
constructor

Best Java code snippets using mage.abilities.mana.ColorlessManaAbility.<init> (Showing top 20 results out of 315)

origin: magefree/mage

public ReliquaryTower(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  // You have no maximum hand size.
  Effect effect = new MaximumHandSizeControllerEffect(Integer.MAX_VALUE, Duration.WhileOnBattlefield, HandSizeModification.SET);
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect));
  // {tap}: Add {C}.
  this.addAbility(new ColorlessManaAbility());
}
origin: magefree/mage

public CathedralOfWar(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  // Cathedral of War enters the battlefield tapped.
  this.addAbility(new EntersBattlefieldTappedAbility());
  
  // Exalted
  this.addAbility(new ExaltedAbility());
  
  // {tap}: Add {C}.
  this.addAbility(new ColorlessManaAbility());
}
origin: magefree/mage

public EldraziTemple(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},null);
  // {T}: Add {C}.
  this.addAbility(new ColorlessManaAbility());
  // {T}: Add {C}{C}. Spend this mana only to cast colorless Eldrazi spells or activate abilities of colorless Eldrazi.  
  this.addAbility(new ConditionalColorlessManaAbility(new TapSourceCost(), 2, new EldraziTempleManaBuilder()));
}
origin: magefree/mage

public CorruptedCrossroads(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  // {T}: Add {C}.
  this.addAbility(new ColorlessManaAbility());
  
  // {T}, Pay 1 life: Add one mana of any color. Spend this mana only to cast a spell with devoid.
  Ability ability = new ConditionalAnyColorManaAbility(1, new BlightedCrossroadsManaBuilder());
  ability.addCost(new PayLifeCost(1));
  this.addAbility(ability);
}
origin: magefree/mage

public ExuberantFirestoker(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{R}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.DRUID);
  this.subtype.add(SubType.SHAMAN);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // At the beginning of your end step, if you control a creature with power 5 or greater, you may have Exuberant Firestoker deal 2 damage to target player.
  this.addAbility(new ExuberantFirestokerTriggeredAbility());
  // {tap}: Add {C}.
  this.addAbility(new ColorlessManaAbility());
}
origin: magefree/mage

public InkmothNexus (UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},null);
  
  // {T}: Add {C}.
  this.addAbility(new ColorlessManaAbility());
  
  // {1}: Inkmoth Nexus becomes a 1/1 Blinkmoth artifact creature with flying and infect until end of turn. It's still a land. (It deals damage to creatures in the form of -1/-1 counters and to players in the form of poison counters.)
  Effect effect = new BecomesCreatureSourceEffect(new InkmothNexusToken(), "land", Duration.EndOfTurn);
  effect.setText("{this} becomes a 1/1 Blinkmoth artifact creature with flying and infect until end of turn. It's still a land. <i>(It deals damage to creatures in the form of -1/-1 counters and to players in the form of poison counters.)</i>");
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new GenericManaCost(1)));
}
origin: magefree/mage

public LanternLitGraveyard(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  this.addAbility(new ColorlessManaAbility());
  Ability blackManaAbility = new BlackManaAbility();
  blackManaAbility.addEffect(new DontUntapInControllersNextUntapStepSourceEffect());
  this.addAbility(blackManaAbility);
  Ability redManaAbility = new RedManaAbility();
  redManaAbility.addEffect(new DontUntapInControllersNextUntapStepSourceEffect());
  this.addAbility(redManaAbility);
}
origin: magefree/mage

public OpalPalace(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  // {T}: Add {C}.
  this.addAbility(new ColorlessManaAbility());
  // {1}, {tap}: Add one mana of any color in your commander's color identity. If you spend this mana to cast your commander, it enters the battlefield with a number of +1/+1 counters on it equal to the number of times it's been cast from the command zone this game.
  Ability ability = new CommanderColorIdentityManaAbility(new GenericManaCost(1));
  ability.addCost(new TapSourceCost());
  this.addAbility(ability, new OpalPalaceWatcher(ability.getOriginalId().toString()));
  ability = new SimpleStaticAbility(Zone.ALL, new OpalPalaceEntersBattlefieldEffect());
  ability.setRuleVisible(false);
  this.addAbility(ability);
}
origin: magefree/mage

public DreadStatuary(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},null);
  this.addAbility(new ColorlessManaAbility());
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesCreatureSourceEffect(new DreadStatuaryToken(), "land", Duration.EndOfTurn), new ManaCostsImpl("{4}")));
}
origin: magefree/mage

public StalkingStones(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  this.addAbility(new ColorlessManaAbility());
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesCreatureSourceEffect(new StalkingStonesToken(), "land", Duration.WhileOnBattlefield), new GenericManaCost(6)));
}
origin: magefree/mage

public HauntedFengraf(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  // {tap}: Add {C}.
  this.addAbility(new ColorlessManaAbility());
  // {3}, {tap}, Sacrifice Haunted Fengraf: Return a creature card at random from your graveyard to your hand.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new HauntedFengrafEffect(), new GenericManaCost(3));
  ability.addCost(new TapSourceCost());
  ability.addCost(new SacrificeSourceCost());
  this.addAbility(ability);
}
origin: magefree/mage

public RiptideLaboratory(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  // {tap}: Add {C}.
  this.addAbility(new ColorlessManaAbility());
  // {1}{U}, {tap}: Return target Wizard you control to its owner's hand.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandTargetEffect(), new ManaCostsImpl("{1}{U}"));
  ability.addCost(new TapSourceCost());
  ability.addTarget(new TargetControlledPermanent(filter));
  this.addAbility(ability);
}
origin: magefree/mage

public RishadanPort(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},null);
  // {tap}: Add {C}.
  this.addAbility(new ColorlessManaAbility());
  // {1}, {tap}: Tap target land.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new GenericManaCost(1));
  ability.addCost(new TapSourceCost());
  ability.addTarget(new TargetLandPermanent());
  this.addAbility(ability);
}
origin: magefree/mage

public DesertedTemple(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  // {tap}: Add {C}.
  this.addAbility(new ColorlessManaAbility());
  // {1}, {tap}: Untap target land.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapTargetEffect(), new ManaCostsImpl("{1}"));
  ability.addCost(new TapSourceCost());
  ability.addTarget(new TargetLandPermanent());
  this.addAbility(ability);
}
origin: magefree/mage

public GuildmagesForum(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
  // {T}: Add {C}.
  this.addAbility(new ColorlessManaAbility());
  // {1}, {T}: Add one mana of any color. If that mana is spent on a multicolored creature spell, that creature enters the battlefield with an additional +1/+1 counter on it.
  Ability ability = new AnyColorManaAbility(new GenericManaCost(1), true);
  ability.getEffects().get(0).setText("Add one mana of any color. If that mana is spent on a multicolored creature spell, that creature enters the battlefield with an additional +1/+1 counter on it");
  ability.addCost(new TapSourceCost());
  this.addAbility(ability, new GuildmagesForumWatcher(ability));
}
origin: magefree/mage

public Desert(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  this.subtype.add(SubType.DESERT);
  // {tap}: Add {C}.
  this.addAbility(new ColorlessManaAbility());
  // {tap}: Desert deals 1 damage to target attacking creature. Activate this ability only during the end of combat step.
  Ability ability = new ConditionalActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new TapSourceCost(), new IsStepCondition(PhaseStep.END_COMBAT, false), null);
  Target target = new TargetCreaturePermanent(filter);
  ability.addTarget(target);
  this.addAbility(ability);
}
origin: magefree/mage

public PhyrexiasCore(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  this.addAbility(new ColorlessManaAbility());
  SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainLifeEffect(1), new TapSourceCost());
  ability.addCost(new GenericManaCost(1));
  ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(filter)));
  this.addAbility(ability);
}
origin: magefree/mage

public FieldOfRuin(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
  // {T}: Add {C}.
  this.addAbility(new ColorlessManaAbility());
  // {2}, {T}, Sacrifice Field of Ruin: Destroy target nonbasic land an opponent controls. Each player searches their library for a basic land card, puts it onto the battlefield, then shuffles their library.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new TapSourceCost());
  ability.addCost(new ManaCostsImpl("{2}"));
  ability.addCost(new SacrificeSourceCost());
  ability.addEffect(new FieldOfRuinEffect());
  ability.addTarget(new TargetLandPermanent(filter));
  this.addAbility(ability);
}
origin: magefree/mage

public RathsEdge(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  addSuperType(SuperType.LEGENDARY);
  // {tap}: Add {C}.
  this.addAbility(new ColorlessManaAbility());
  // {4}, {tap}, Sacrifice a land: Rath's Edge deals 1 damage to any target.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new ManaCostsImpl<>("{4}"));
  ability.addCost(new TapSourceCost());
  ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(filter)));
  ability.addTarget(new TargetAnyTarget());
  this.addAbility(ability);
}
origin: magefree/mage

public HostileDesert(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
  this.subtype.add(SubType.DESERT);
  // {T}: Add {C}.
  addAbility(new ColorlessManaAbility());
  // {2}, Exile a land card from your graveyard: Hostile Desert becomes a 3/4 Elemental creature until end of turn. It's still a land.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesCreatureSourceEffect(
      new ElementalCreatureToken(3, 4, "3/4 Elemental creature"),
      "land", Duration.EndOfTurn), new GenericManaCost(2));
  ability.addCost(new ExileFromGraveCost(new TargetCardInYourGraveyard(new FilterLandCard("land card from your graveyard"))));
  addAbility(ability);
}
mage.abilities.manaColorlessManaAbility<init>

Popular methods of ColorlessManaAbility

  • addCost
  • addEffect
  • setUndoPossible

Popular in Java

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • findViewById (Activity)
  • putExtra (Intent)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now