public CreatureToken withColor(String extraColors) { ObjectColor extraColorsList = new ObjectColor(extraColors); this.getColor(null).addColor(extraColorsList); return this; }
public ElementalCreatureToken(int power, int toughness, String description, ObjectColor color) { super("", description); this.cardType.add(CardType.CREATURE); this.subtype.add(SubType.ELEMENTAL); this.power = new MageInt(power); this.toughness = new MageInt(toughness); if (color != null) { this.color.addColor(color); } }
public OozeToken(int x) { super("Ooze", "X/X green Ooze creature token, where X is the sacrificed creature's power"); this.cardType.add(CardType.CREATURE); this.color.addColor(ObjectColor.GREEN); this.subtype.add(SubType.OOZE); this.toughness = new MageInt(x); this.power = new MageInt(x); }
public DeepFreezeToken() { super("", "has base power and toughness 0/4, has defender, loses all other abilities, and is a blue Wall in addition to its other colors and types"); cardType.add(CardType.CREATURE); subtype.add(SubType.WALL); color.addColor(ObjectColor.BLUE); power = new MageInt(0); toughness = new MageInt(4); this.addAbility(DefenderAbility.getInstance()); }
perm.getColor(game).addColor(color); object.getColor(game).addColor(color); game.getState().getCreateCardAttribute(card, game).getColor().addColor(color); commandObject.getColor(game).addColor(color); game.getState().getCreateCardAttribute(card, game).getColor().addColor(color); game.getState().getCreateCardAttribute(card, game).getColor().addColor(color); game.getState().getCreateCardAttribute(card, game).getColor().addColor(color);
@Override public boolean apply(Game game, Ability source) { Player controller = game.getPlayer(source.getControllerId()); if (controller == null) { return false; } if (setColor != null) { for (Permanent permanent : game.getBattlefield().getActivePermanents(filter, source.getControllerId(), source.getSourceId(), game)) { if (permanent != null) { switch (layer) { case ColorChangingEffects_5: if (loseOther) { permanent.getColor(game).setColor(new ObjectColor()); } permanent.getColor(game).addColor(setColor); break; } } else if (duration == Duration.Custom) { discard(); } } return true; } return false; }
permanent.getColor(game).addColor(token.getColor(game));
for (ObjectColor color : ObjectColor.getAllColors()) { if (colorCounts[i] == max) { commonest.addColor(color);
permanent.getColor(game).addColor(token.getColor(game));