From b10e385221f6880fe33eb53a81f315d4e0c6dad2 Mon Sep 17 00:00:00 2001 From: magenoxx Date: Wed, 2 May 2012 00:02:03 +0400 Subject: [PATCH] formatting --- .../abilities/keyword/MiracleAbility.java | 28 +++++++++---------- .../mage/watchers/common/MiracleWatcher.java | 10 +++---- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/Mage/src/mage/abilities/keyword/MiracleAbility.java b/Mage/src/mage/abilities/keyword/MiracleAbility.java index b5840d04475..fcc563f274c 100644 --- a/Mage/src/mage/abilities/keyword/MiracleAbility.java +++ b/Mage/src/mage/abilities/keyword/MiracleAbility.java @@ -34,34 +34,34 @@ import mage.abilities.costs.Cost; /** * Miracle ability: - * You may cast this card for its miracle cost when you draw it if it's the first card you drew this turn. + * You may cast this card for its miracle cost when you draw it if it's the first card you drew this turn. * * @author noxx */ public class MiracleAbility extends StaticAbility { private static final String staticRule = " (You may cast this card for its miracle cost when you draw it if it's the first card you drew this turn.)"; - + private String ruleText; - - public MiracleAbility(Cost cost) { - super(Zone.BATTLEFIELD, null); + + public MiracleAbility(Cost cost) { + super(Zone.BATTLEFIELD, null); addCost(cost); ruleText = "Miracle" + cost.getText() + staticRule; - } + } public MiracleAbility(MiracleAbility miracleAbility) { super(miracleAbility); } - @Override - public String getRule() { - return ruleText; - } + @Override + public String getRule() { + return ruleText; + } - @Override - public MiracleAbility copy() { - return new MiracleAbility(this); - } + @Override + public MiracleAbility copy() { + return new MiracleAbility(this); + } } \ No newline at end of file diff --git a/Mage/src/mage/watchers/common/MiracleWatcher.java b/Mage/src/mage/watchers/common/MiracleWatcher.java index f0eafbea8d6..4dbb6f0b555 100644 --- a/Mage/src/mage/watchers/common/MiracleWatcher.java +++ b/Mage/src/mage/watchers/common/MiracleWatcher.java @@ -61,11 +61,11 @@ public class MiracleWatcher extends WatcherImpl { public MiracleWatcher(final MiracleWatcher watcher) { super(watcher); - for (Entry entry: watcher.amountOfCardsDrawnThisTurn.entrySet()) { + for (Entry entry : watcher.amountOfCardsDrawnThisTurn.entrySet()) { amountOfCardsDrawnThisTurn.put(entry.getKey(), entry.getValue()); } } - + @Override public void watch(GameEvent event, Game game) { if (event.getType() == GameEvent.EventType.DREW_CARD) { @@ -75,7 +75,7 @@ public class MiracleWatcher extends WatcherImpl { if (amount == null) { amount = Integer.valueOf(1); } else { - amount = Integer.valueOf(amount+1); + amount = Integer.valueOf(amount + 1); } amountOfCardsDrawnThisTurn.put(playerId, amount); if (amount == 1) { @@ -105,9 +105,9 @@ public class MiracleWatcher extends WatcherImpl { @Override - public void reset() { + public void reset() { amountOfCardsDrawnThisTurn.clear(); - } + } @Override public MiracleWatcher copy() {