mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
[minor] Formatting.
This commit is contained in:
parent
5de0551879
commit
9989070b7e
5 changed files with 10 additions and 6 deletions
|
@ -31,9 +31,9 @@ import java.util.UUID;
|
|||
import mage.Constants.CardType;
|
||||
import mage.Constants.Rarity;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.keyword.TrampleAbility;
|
||||
import mage.abilities.keyword.UndyingAbility;
|
||||
import mage.abilities.keyword.VigilanceAbility;
|
||||
import mage.abilities.keyword.TrampleAbility;
|
||||
import mage.cards.CardImpl;
|
||||
|
||||
/**
|
||||
|
|
|
@ -75,7 +75,7 @@ public class MazesEnd extends CardImpl<MazesEnd> {
|
|||
// {T}: Add 1 to your mana pool.
|
||||
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 owner’s 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.addEffect(new MazesEndEffect());
|
||||
ability.addCost(new TapSourceCost());
|
||||
|
|
|
@ -90,8 +90,9 @@ class UnwindingClockEffect extends ContinuousEffectImpl<UnwindingClockEffect> {
|
|||
@Override
|
||||
public boolean apply(Layer layer, SubLayer sublayer, Ability source, Game game) {
|
||||
Boolean applied = (Boolean) game.getState().getValue(source.getSourceId() + "applied");
|
||||
if (applied == null)
|
||||
if (applied == null) {
|
||||
applied = Boolean.FALSE;
|
||||
}
|
||||
if (!applied && layer.equals(Layer.RulesEffects)) {
|
||||
if (!game.getActivePlayerId().equals(source.getControllerId()) && game.getStep().getType() == PhaseStep.UNTAP) {
|
||||
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()) {
|
||||
untap &= effect.canBeUntapped(artifact, game);
|
||||
}
|
||||
if (untap) artifact.untap(game);
|
||||
if (untap) {
|
||||
artifact.untap(game);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (applied && layer.equals(Layer.RulesEffects)) {
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
package mage.sets.saviorsofkamigawa;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.Constants;
|
||||
import mage.Constants.CardType;
|
||||
import mage.Constants.Rarity;
|
||||
|
@ -52,6 +51,7 @@ public class KamiOfTheTendedGarden extends CardImpl<KamiOfTheTendedGarden> {
|
|||
this.color.setGreen(true);
|
||||
this.power = new MageInt(4);
|
||||
this.toughness = new MageInt(4);
|
||||
|
||||
// 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 SoulshiftAbility(3));
|
||||
|
|
|
@ -61,9 +61,10 @@ public class EndPhase extends Phase<EndPhase> {
|
|||
}
|
||||
currentStep.endStep(game, activePlayerId);
|
||||
}
|
||||
else
|
||||
else {
|
||||
super.playStep(game);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public EndPhase copy() {
|
||||
|
|
Loading…
Reference in a new issue