mirror of
https://github.com/magefree/mage.git
synced 2025-12-30 07:22:03 -08:00
[CMM] Implement Commodore Guff
This commit is contained in:
parent
eaca4c01ac
commit
cd3fb997a7
4 changed files with 139 additions and 0 deletions
|
|
@ -448,6 +448,7 @@ public enum SubType {
|
|||
GARRUK("Garruk", SubTypeSet.PlaneswalkerType),
|
||||
GIDEON("Gideon", SubTypeSet.PlaneswalkerType),
|
||||
GRIST("Grist", SubTypeSet.PlaneswalkerType),
|
||||
GUFF("Guff", SubTypeSet.PlaneswalkerType),
|
||||
HUATLI("Huatli", SubTypeSet.PlaneswalkerType),
|
||||
JACE("Jace", SubTypeSet.PlaneswalkerType),
|
||||
JARED("Jared", SubTypeSet.PlaneswalkerType),
|
||||
|
|
|
|||
|
|
@ -0,0 +1,58 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.ConditionalMana;
|
||||
import mage.MageInt;
|
||||
import mage.Mana;
|
||||
import mage.abilities.mana.ConditionalColoredManaAbility;
|
||||
import mage.abilities.mana.builder.ConditionalManaBuilder;
|
||||
import mage.abilities.mana.conditional.PlaneswalkerCastManaCondition;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class CommodoreGuffToken extends TokenImpl {
|
||||
|
||||
public CommodoreGuffToken() {
|
||||
super("Wizard Token", "1/1 red Wizard creature token with \"{T}: Add {R}. Spend this mana only to cast a planeswalker spell.\"");
|
||||
cardType.add(CardType.CREATURE);
|
||||
subtype.add(SubType.WIZARD);
|
||||
color.setRed(true);
|
||||
power = new MageInt(1);
|
||||
toughness = new MageInt(1);
|
||||
|
||||
this.addAbility(new ConditionalColoredManaAbility(Mana.RedMana(1), new CommodoreGuffTokenManaBuilder()));
|
||||
|
||||
setOriginalExpansionSetCode("CMM");
|
||||
}
|
||||
|
||||
private CommodoreGuffToken(final CommodoreGuffToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public CommodoreGuffToken copy() {
|
||||
return new CommodoreGuffToken(this);
|
||||
}
|
||||
}
|
||||
|
||||
class CommodoreGuffTokenManaBuilder extends ConditionalManaBuilder {
|
||||
|
||||
@Override
|
||||
public ConditionalMana build(Object... options) {
|
||||
return new CommodoreGuffTokenConditionalMana(this.mana);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return "Spend this mana only to cast a planeswalker spell.";
|
||||
}
|
||||
}
|
||||
|
||||
class CommodoreGuffTokenConditionalMana extends ConditionalMana {
|
||||
|
||||
CommodoreGuffTokenConditionalMana(Mana mana) {
|
||||
super(mana);
|
||||
addCondition(new PlaneswalkerCastManaCondition());
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue