mirror of
https://github.com/correl/mage.git
synced 2024-12-25 19:25:41 +00:00
* Diamond Kaleidoscope - Fixed available mana calculation (#6698).
This commit is contained in:
parent
881f727ec7
commit
f7b3e33f92
1 changed files with 5 additions and 3 deletions
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
package mage.cards.d;
|
package mage.cards.d;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
@ -7,6 +6,7 @@ import mage.abilities.common.SimpleActivatedAbility;
|
||||||
import mage.abilities.costs.common.SacrificeTargetCost;
|
import mage.abilities.costs.common.SacrificeTargetCost;
|
||||||
import mage.abilities.costs.common.TapSourceCost;
|
import mage.abilities.costs.common.TapSourceCost;
|
||||||
import mage.abilities.costs.mana.GenericManaCost;
|
import mage.abilities.costs.mana.GenericManaCost;
|
||||||
|
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
|
||||||
import mage.abilities.effects.common.CreateTokenEffect;
|
import mage.abilities.effects.common.CreateTokenEffect;
|
||||||
import mage.abilities.mana.AnyColorManaAbility;
|
import mage.abilities.mana.AnyColorManaAbility;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
|
@ -33,7 +33,7 @@ public final class DiamondKaleidoscope extends CardImpl {
|
||||||
}
|
}
|
||||||
|
|
||||||
public DiamondKaleidoscope(UUID ownerId, CardSetInfo setInfo) {
|
public DiamondKaleidoscope(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{4}");
|
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{4}");
|
||||||
|
|
||||||
// {3}, {tap}: Create a 0/1 colorless Prism artifact creature token.
|
// {3}, {tap}: Create a 0/1 colorless Prism artifact creature token.
|
||||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new PrismToken(), 1), new GenericManaCost(3));
|
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new PrismToken(), 1), new GenericManaCost(3));
|
||||||
|
@ -41,7 +41,9 @@ public final class DiamondKaleidoscope extends CardImpl {
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
|
|
||||||
// Sacrifice a Prism token: Add one mana of any color.
|
// Sacrifice a Prism token: Add one mana of any color.
|
||||||
ability = new AnyColorManaAbility(new SacrificeTargetCost(new TargetControlledPermanent(filter)));
|
ability = new AnyColorManaAbility(new SacrificeTargetCost(new TargetControlledPermanent(filter)),
|
||||||
|
new PermanentsOnBattlefieldCount(filter),
|
||||||
|
false);
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue