[minor] Formatting.

This commit is contained in:
LevelX2 2013-06-02 02:28:20 +02:00
parent 5de0551879
commit 9989070b7e
5 changed files with 10 additions and 6 deletions

View file

@ -31,9 +31,9 @@ import java.util.UUID;
import mage.Constants.CardType; import mage.Constants.CardType;
import mage.Constants.Rarity; import mage.Constants.Rarity;
import mage.MageInt; import mage.MageInt;
import mage.abilities.keyword.TrampleAbility;
import mage.abilities.keyword.UndyingAbility; import mage.abilities.keyword.UndyingAbility;
import mage.abilities.keyword.VigilanceAbility; import mage.abilities.keyword.VigilanceAbility;
import mage.abilities.keyword.TrampleAbility;
import mage.cards.CardImpl; import mage.cards.CardImpl;
/** /**

View file

@ -75,7 +75,7 @@ public class MazesEnd extends CardImpl<MazesEnd> {
// {T}: Add 1 to your mana pool. // {T}: Add 1 to your mana pool.
this.addAbility(new ColorlessManaAbility()); this.addAbility(new ColorlessManaAbility());
// 3, {T}, Return Maze's End to your hand: Search your library for a Gate card, put it onto the battlefield, then shuffle your library. If you control ten or more Gates with different names, you win the game. // 3, {T}, Return Maze's End to its owners hand: Search your library for a Gate card, put it onto the battlefield, then shuffle your library. If you control ten or more Gates with different names, you win the game.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(filterCard)), new GenericManaCost(3)); Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(filterCard)), new GenericManaCost(3));
ability.addEffect(new MazesEndEffect()); ability.addEffect(new MazesEndEffect());
ability.addCost(new TapSourceCost()); ability.addCost(new TapSourceCost());

View file

@ -90,8 +90,9 @@ class UnwindingClockEffect extends ContinuousEffectImpl<UnwindingClockEffect> {
@Override @Override
public boolean apply(Layer layer, SubLayer sublayer, Ability source, Game game) { public boolean apply(Layer layer, SubLayer sublayer, Ability source, Game game) {
Boolean applied = (Boolean) game.getState().getValue(source.getSourceId() + "applied"); Boolean applied = (Boolean) game.getState().getValue(source.getSourceId() + "applied");
if (applied == null) if (applied == null) {
applied = Boolean.FALSE; applied = Boolean.FALSE;
}
if (!applied && layer.equals(Layer.RulesEffects)) { if (!applied && layer.equals(Layer.RulesEffects)) {
if (!game.getActivePlayerId().equals(source.getControllerId()) && game.getStep().getType() == PhaseStep.UNTAP) { if (!game.getActivePlayerId().equals(source.getControllerId()) && game.getStep().getType() == PhaseStep.UNTAP) {
game.getState().setValue(source.getSourceId() + "applied", true); game.getState().setValue(source.getSourceId() + "applied", true);
@ -100,7 +101,9 @@ class UnwindingClockEffect extends ContinuousEffectImpl<UnwindingClockEffect> {
for (RestrictionEffect effect: game.getContinuousEffects().getApplicableRestrictionEffects(artifact, game).keySet()) { for (RestrictionEffect effect: game.getContinuousEffects().getApplicableRestrictionEffects(artifact, game).keySet()) {
untap &= effect.canBeUntapped(artifact, game); untap &= effect.canBeUntapped(artifact, game);
} }
if (untap) artifact.untap(game); if (untap) {
artifact.untap(game);
}
} }
} }
} else if (applied && layer.equals(Layer.RulesEffects)) { } else if (applied && layer.equals(Layer.RulesEffects)) {

View file

@ -28,7 +28,6 @@
package mage.sets.saviorsofkamigawa; package mage.sets.saviorsofkamigawa;
import java.util.UUID; import java.util.UUID;
import mage.Constants; import mage.Constants;
import mage.Constants.CardType; import mage.Constants.CardType;
import mage.Constants.Rarity; import mage.Constants.Rarity;
@ -52,6 +51,7 @@ public class KamiOfTheTendedGarden extends CardImpl<KamiOfTheTendedGarden> {
this.color.setGreen(true); this.color.setGreen(true);
this.power = new MageInt(4); this.power = new MageInt(4);
this.toughness = new MageInt(4); this.toughness = new MageInt(4);
// At the beginning of your upkeep, sacrifice Kami of the Tended Garden unless you pay {G}. // At the beginning of your upkeep, sacrifice Kami of the Tended Garden unless you pay {G}.
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ColoredManaCost(Constants.ColoredManaSymbol.G)), Constants.TargetController.YOU, false)); this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ColoredManaCost(Constants.ColoredManaSymbol.G)), Constants.TargetController.YOU, false));
this.addAbility(new SoulshiftAbility(3)); this.addAbility(new SoulshiftAbility(3));

View file

@ -61,8 +61,9 @@ public class EndPhase extends Phase<EndPhase> {
} }
currentStep.endStep(game, activePlayerId); currentStep.endStep(game, activePlayerId);
} }
else else {
super.playStep(game); super.playStep(game);
}
} }
@Override @Override