Tabs and spaces once again.

This commit is contained in:
Clint Herron 2016-09-27 15:53:25 -04:00
parent 73235fad37
commit a363749b2f

View file

@ -66,9 +66,9 @@ public class RiptideReplicator extends CardImpl {
effect.setText("and a creature type"); effect.setText("and a creature type");
ability.addEffect(new ChooseCreatureTypeEffect(Outcome.Neutral)); ability.addEffect(new ChooseCreatureTypeEffect(Outcome.Neutral));
this.addAbility(ability); this.addAbility(ability);
// Riptide Replicator enters the battlefield with X charge counters on it. // Riptide Replicator enters the battlefield with X charge counters on it.
this.addAbility(new EntersBattlefieldAbility(new EntersBattlefieldWithXCountersEffect(CounterType.CHARGE.createInstance()))); this.addAbility(new EntersBattlefieldAbility(new EntersBattlefieldWithXCountersEffect(CounterType.CHARGE.createInstance())));
// {4}, {T}: Put an X/X creature token of the chosen color and type onto the battlefield, where X is the number of charge counters on Riptide Replicator. // {4}, {T}: Put an X/X creature token of the chosen color and type onto the battlefield, where X is the number of charge counters on Riptide Replicator.
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RiptideReplicatorEffect(), new GenericManaCost(4)); ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RiptideReplicatorEffect(), new GenericManaCost(4));
@ -106,7 +106,7 @@ class RiptideReplicatorEffect extends OneShotEffect {
public boolean apply(Game game, Ability source) { public boolean apply(Game game, Ability source) {
ObjectColor color = (ObjectColor) game.getState().getValue(source.getSourceId() + "_color"); ObjectColor color = (ObjectColor) game.getState().getValue(source.getSourceId() + "_color");
String type = (String) game.getState().getValue(source.getSourceId() + "_type"); String type = (String) game.getState().getValue(source.getSourceId() + "_type");
int x = (new CountersSourceCount(CounterType.CHARGE)).calculate(game, source, this); int x = (new CountersSourceCount(CounterType.CHARGE)).calculate(game, source, this);
Token token = new RiptideReplicatorToken(color, type, x); Token token = new RiptideReplicatorToken(color, type, x);
return token.putOntoBattlefield(1, game, source.getSourceId(), source.getControllerId()); return token.putOntoBattlefield(1, game, source.getSourceId(), source.getControllerId());
} }