1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-01 19:07:57 -09:00

* Fixed available mana generation of Gemstone Array, Pentad Prism and

Utopia Mycon ().
This commit is contained in:
LevelX2 2020-07-27 23:00:39 +02:00
parent 82dfd76ee3
commit 8e27ca31cd
4 changed files with 12 additions and 5 deletions

View file

@ -5,6 +5,7 @@ import java.util.UUID;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.RemoveCountersSourceCost;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.dynamicvalue.common.CountersSourceCount;
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
import mage.abilities.mana.AnyColorManaAbility;
import mage.cards.CardImpl;
@ -25,7 +26,8 @@ public final class GemstoneArray extends CardImpl {
// {2}: Put a charge counter on Gemstone Array.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.CHARGE.createInstance(1)), new ManaCostsImpl("{2}")));
// Remove a charge counter from Gemstone Array: Add one mana of any color.
this.addAbility(new AnyColorManaAbility(new RemoveCountersSourceCost(CounterType.CHARGE.createInstance(1))));
this.addAbility(new AnyColorManaAbility(new RemoveCountersSourceCost(CounterType.CHARGE.createInstance(1)),
new CountersSourceCount(CounterType.CHARGE), false));
}
public GemstoneArray(final GemstoneArray card) {

View file

@ -25,6 +25,8 @@ public final class OrochiLeafcaller extends CardImpl {
this.power = new MageInt(1);
this.toughness = new MageInt(1);
// {G}: Add one mana of any color.
this.addAbility(new AnyColorManaAbility(new ColoredManaCost(ColoredManaSymbol.G)));
}

View file

@ -1,8 +1,8 @@
package mage.cards.p;
import java.util.UUID;
import mage.abilities.costs.common.RemoveCountersSourceCost;
import mage.abilities.dynamicvalue.common.CountersSourceCount;
import mage.abilities.keyword.SunburstAbility;
import mage.abilities.mana.AnyColorManaAbility;
import mage.cards.CardImpl;
@ -17,12 +17,13 @@ import mage.counters.CounterType;
public final class PentadPrism extends CardImpl {
public PentadPrism(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{2}");
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}");
// Sunburst
this.addAbility(new SunburstAbility(this));
// Remove a charge counter from Pentad Prism: Add one mana of any color.
this.addAbility(new AnyColorManaAbility(new RemoveCountersSourceCost(CounterType.CHARGE.createInstance(1))));
this.addAbility(new AnyColorManaAbility(new RemoveCountersSourceCost(CounterType.CHARGE.createInstance(1)),
new CountersSourceCount(CounterType.CHARGE), false));
}
public PentadPrism(final PentadPrism card) {

View file

@ -21,6 +21,7 @@ import mage.game.permanent.token.SaprolingToken;
import mage.target.common.TargetControlledCreaturePermanent;
import java.util.UUID;
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
/**
* @author fireshoes
@ -46,7 +47,8 @@ public final class UtopiaMycon extends CardImpl {
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new SaprolingToken()), new RemoveCountersSourceCost(CounterType.SPORE.createInstance(3))));
// Sacrifice a Saproling: Add one mana of any color.
Ability ability = new AnyColorManaAbility(new SacrificeTargetCost(new TargetControlledCreaturePermanent(1, 1, filter, false)));
Ability ability = new AnyColorManaAbility(new SacrificeTargetCost(new TargetControlledCreaturePermanent(1, 1, filter, false)),
new PermanentsOnBattlefieldCount(filter), false);
this.addAbility(ability);
}