[BRO] Implemented The Mightstone and Weakstone

This commit is contained in:
Evan Kranzler 2022-09-29 22:49:05 -04:00
parent 278feb9b9a
commit 518602bf61
4 changed files with 67 additions and 1 deletions

View file

@ -47,6 +47,7 @@ public enum SubType {
FOOD("Food", SubTypeSet.ArtifactType),
FORTIFICATION("Fortification", SubTypeSet.ArtifactType),
GOLD("Gold", SubTypeSet.ArtifactType),
POWERSTONE("Powerstone", SubTypeSet.ArtifactType),
TREASURE("Treasure", SubTypeSet.ArtifactType),
VEHICLE("Vehicle", SubTypeSet.ArtifactType),
// 205.3m : Creatures and tribals share their lists of subtypes; these subtypes are called creature types.

View file

@ -12,6 +12,7 @@ import mage.abilities.mana.builder.ConditionalManaBuilder;
import mage.abilities.mana.conditional.ManaCondition;
import mage.cards.Card;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.game.Game;
import mage.game.command.Commander;
import mage.game.stack.Spell;
@ -29,9 +30,10 @@ public final class PowerstoneToken extends TokenImpl {
public PowerstoneToken() {
super("Powerstone Token", "Powerstone token");
cardType.add(CardType.ARTIFACT);
subtype.add(SubType.POWERSTONE);
// {T}: Add {C}. This mana can't be spent to cast a nonartifact spell.
this.addAbility(new ConditionalColorlessManaAbility(1, new PowerstoneTokenManaBuilder()));
this.addAbility(new ConditionalColorlessManaAbility(1, makeBuilder()));
availableImageSetCodes = Arrays.asList("DMU");
}
@ -43,6 +45,10 @@ public final class PowerstoneToken extends TokenImpl {
public PowerstoneToken copy() {
return new PowerstoneToken(this);
}
public static PowerstoneTokenManaBuilder makeBuilder() {
return new PowerstoneTokenManaBuilder();
}
}
class PowerstoneTokenManaBuilder extends ConditionalManaBuilder {