@Override public CommanderColorIdentityManaAbility copy() { return new CommanderColorIdentityManaAbility(this); }
List<Mana> netManas = new ArrayList<>(); if (netMana.isEmpty() && game != null) { Player controller = game.getPlayer(getControllerId()); if (controller != null) { for (UUID commanderId : controller.getCommandersIds()) {
public CommandTower(UUID ownerId, CardSetInfo setInfo) { super(ownerId,setInfo,new CardType[]{CardType.LAND},""); // {tap}: Add one mana of any color in your commander's color identity. this.addAbility(new CommanderColorIdentityManaAbility()); }
public PathOfAncestry(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.LAND}, ""); // Path of Ancestry enters the battlefield tapped. this.addAbility(new EntersBattlefieldTappedAbility()); // T: Add one mana of any color in your commander's color identity. Ability ability = new CommanderColorIdentityManaAbility(); this.addAbility(ability); // When that mana is spent to cast a creature spell that shares a creature type with your commander, scry 1. this.addAbility(new PathOfAncestryTriggeredAbility(new ScryEffect(1))); }
public CommandersSphere(UUID ownerId, CardSetInfo setInfo) { super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{3}"); // {tap}: Add one mana of any color in your commander's color identity. this.addAbility(new CommanderColorIdentityManaAbility()); // Sacrifice Commander's Sphere: Draw a card. this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new SacrificeSourceCost())); }
public OpalPalace(UUID ownerId, CardSetInfo setInfo) { super(ownerId,setInfo,new CardType[]{CardType.LAND},""); // {T}: Add {C}. this.addAbility(new ColorlessManaAbility()); // {1}, {tap}: Add one mana of any color in your commander's color identity. If you spend this mana to cast your commander, it enters the battlefield with a number of +1/+1 counters on it equal to the number of times it's been cast from the command zone this game. Ability ability = new CommanderColorIdentityManaAbility(new GenericManaCost(1)); ability.addCost(new TapSourceCost()); this.addAbility(ability, new OpalPalaceWatcher(ability.getOriginalId().toString())); ability = new SimpleStaticAbility(Zone.ALL, new OpalPalaceEntersBattlefieldEffect()); ability.setRuleVisible(false); this.addAbility(ability); }