congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
AddManaInAnyCombinationEffect
Code IndexAdd Tabnine to your IDE (free)

How to use
AddManaInAnyCombinationEffect
in
mage.abilities.effects.mana

Best Java code snippets using mage.abilities.effects.mana.AddManaInAnyCombinationEffect (Showing top 12 results out of 315)

origin: magefree/mage

@Override
public AddManaInAnyCombinationEffect copy() {
  return new AddManaInAnyCombinationEffect(this);
}
origin: magefree/mage

@Override
public boolean apply(Game game, Ability source) {
  Player player = game.getPlayer(source.getControllerId());
  if (player != null) {
    checkToFirePossibleEvents(getMana(game, source), game, source);
    player.getManaPool().addMana(getMana(game, source), game, source);
    return true;
  }
  return false;
}
origin: magefree/mage

public AddManaInAnyCombinationEffect(DynamicValue amount, ColoredManaSymbol... coloredManaSymbols) {
  super();
  this.manaSymbols.addAll(Arrays.asList(coloredManaSymbols));
  this.amount = amount;
  this.staticText = setText();
}
origin: magefree/mage

public Manamorphose(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{1}{R/G}");
  // Add two mana in any combination of colors.
  this.getSpellAbility().addEffect(new AddManaInAnyCombinationEffect(2));
  // Draw a card.
  this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1));
}
origin: magefree/mage

public CascadingCataracts(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
  // Indestructibles
  this.addAbility(IndestructibleAbility.getInstance());
  // {T}: Add {C}.
  this.addAbility(new ColorlessManaAbility());
  // {5}, {T}: Add five mana in any combination of colors.
  Ability ability = new SimpleManaAbility(Zone.BATTLEFIELD, new AddManaInAnyCombinationEffect(5), new GenericManaCost(5));
  ability.addCost(new TapSourceCost());
  this.addAbility(ability);
}
origin: magefree/mage

public Terrarion(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{1}");
  // Terrarion enters the battlefield tapped.
  this.addAbility(new EntersBattlefieldTappedAbility());
  // {2}, {T}, Sacrifice Terrarion: Add two mana in any combination of colors.
  Ability ability = new SimpleManaAbility(Zone.BATTLEFIELD, new AddManaInAnyCombinationEffect(2), new GenericManaCost(2));
  ability.addCost(new TapSourceCost());
  ability.addCost(new SacrificeSourceCost());
  this.addAbility(ability);
  // When Terrarion is put into a graveyard from the battlefield, draw a card.
  this.addAbility(new PutIntoGraveFromBattlefieldSourceTriggeredAbility(new DrawCardSourceControllerEffect(1)));
}
origin: magefree/mage

public SaltcrustedSteppe(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  // {tap}: Add {C}.
  this.addAbility(new ColorlessManaAbility());
  // {1}, {tap}: Put a storage counter on Saltcrusted Steppe.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.STORAGE.createInstance()), new GenericManaCost(1));
  ability.addCost(new TapSourceCost());
  this.addAbility(ability);
  // {1}, Remove X storage counters from Saltcrusted Steppe: Add X mana in any combination of {G} and/or {W}.
  ability = new SimpleManaAbility(Zone.BATTLEFIELD,
      new AddManaInAnyCombinationEffect(RemovedCountersForCostValue.instance, ColoredManaSymbol.G, ColoredManaSymbol.W),
      new GenericManaCost(1));
  ability.addCost(new RemoveVariableCountersSourceCost(CounterType.STORAGE.createInstance()));
  this.addAbility(ability);
}
origin: magefree/mage

public FungalReaches(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  // {tap}: Add {C}.
  this.addAbility(new ColorlessManaAbility());
  // {1}, {tap}: Put a storage counter on Fungal Reaches.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.STORAGE.createInstance()), new GenericManaCost(1));
  ability.addCost(new TapSourceCost());
  this.addAbility(ability);
  // {1}, Remove X storage counters from Fungal Reaches: Add X mana in any combination of {R} and/or {G}.
  ability = new SimpleManaAbility(Zone.BATTLEFIELD,
      new AddManaInAnyCombinationEffect(RemovedCountersForCostValue.instance, ColoredManaSymbol.R, ColoredManaSymbol.G),
      new GenericManaCost(1));
  ability.addCost(new RemoveVariableCountersSourceCost(CounterType.STORAGE.createInstance()));
  this.addAbility(ability);
}
origin: magefree/mage

public DreadshipReef(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  // {tap}: Add {C}.
  this.addAbility(new ColorlessManaAbility());
  // {1}, {tap}: Put a storage counter on Dreadship Reef.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.STORAGE.createInstance()), new GenericManaCost(1));
  ability.addCost(new TapSourceCost());
  this.addAbility(ability);
  // {1}, Remove X storage counters from Dreadship Reef: Add X mana in any combination of {U} and/or {B}.
  ability = new SimpleManaAbility(Zone.BATTLEFIELD,
      new AddManaInAnyCombinationEffect(RemovedCountersForCostValue.instance, ColoredManaSymbol.U, ColoredManaSymbol.B),
      new GenericManaCost(1));
  ability.addCost(new RemoveVariableCountersSourceCost(CounterType.STORAGE.createInstance()));
  this.addAbility(ability);
}
origin: magefree/mage

public MoltenSlagheap(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  // {tap}: Add {C}.
  this.addAbility(new ColorlessManaAbility());
  // {1}, {tap}: Put a storage counter on Molten Slagheap.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.STORAGE.createInstance()), new GenericManaCost(1));
  ability.addCost(new TapSourceCost());
  this.addAbility(ability);
  // {1}, Remove X storage counters from Molten Slagheap: Add X mana in any combination of {B} and/or {R}.
  ability = new SimpleManaAbility(Zone.BATTLEFIELD,
      new AddManaInAnyCombinationEffect(RemovedCountersForCostValue.instance, ColoredManaSymbol.B, ColoredManaSymbol.R),
      new GenericManaCost(1));
  ability.addCost(new RemoveVariableCountersSourceCost(CounterType.STORAGE.createInstance()));
  this.addAbility(ability);
}
origin: magefree/mage

public CalciformPools(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  // {tap}: Add {C}.
  this.addAbility(new ColorlessManaAbility());
  // {1}, {tap}: Put a storage counter on Calciform Pools.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.STORAGE.createInstance()), new GenericManaCost(1));
  ability.addCost(new TapSourceCost());
  this.addAbility(ability);
  // {1}, Remove X storage counters from Calciform Pools: Add X mana in any combination of {W} and/or {U}.
  ability = new SimpleManaAbility(Zone.BATTLEFIELD,
      new AddManaInAnyCombinationEffect(RemovedCountersForCostValue.instance, ColoredManaSymbol.W, ColoredManaSymbol.U),
      new GenericManaCost(1));
  ability.addCost(new RemoveVariableCountersSourceCost(CounterType.STORAGE.createInstance()));
  this.addAbility(ability);
}
origin: magefree/mage

public SelvalaHeartOfTheWilds(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G}{G}");
  addSuperType(SuperType.LEGENDARY);
  this.subtype.add(SubType.ELF);
  this.subtype.add(SubType.SCOUT);
  this.power = new MageInt(2);
  this.toughness = new MageInt(3);
  // Whenever another creature enters the battlefield, its controller may draw a card if its power is greater than each other creature's power.
  this.addAbility(new EntersBattlefieldAllTriggeredAbility(Zone.BATTLEFIELD, new SelvalaHeartOfTheWildsEffect(), filter, false, SetTargetPointer.PERMANENT, rule));
  // {G}, {T}: Add X mana in any combination of colors, where X is the greatest power among creatures you control.
  ManaEffect manaEffect = new AddManaInAnyCombinationEffect(
      GreatestPowerAmongControlledCreaturesValue.instance, rule2,
      ColoredManaSymbol.B, ColoredManaSymbol.U, ColoredManaSymbol.R, ColoredManaSymbol.W, ColoredManaSymbol.G);
  Ability ability = new SimpleManaAbility(Zone.BATTLEFIELD, manaEffect, new ManaCostsImpl("{G}"));
  ability.addCost(new TapSourceCost());
  this.addAbility(ability);
}
mage.abilities.effects.manaAddManaInAnyCombinationEffect

Most used methods

  • <init>
  • checkToFirePossibleEvents
  • getMana
  • setText

Popular in Java

  • Start an intent from android
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onRequestPermissionsResult (Fragment)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Top 12 Jupyter Notebook extensions
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