mirror of
https://github.com/correl/mage.git
synced 2025-04-08 17:00:07 -09:00
formatting
This commit is contained in:
parent
844d64a774
commit
b10e385221
2 changed files with 19 additions and 19 deletions
Mage/src/mage
|
@ -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<MiracleAbility> {
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
|
@ -61,11 +61,11 @@ public class MiracleWatcher extends WatcherImpl<MiracleWatcher> {
|
|||
|
||||
public MiracleWatcher(final MiracleWatcher watcher) {
|
||||
super(watcher);
|
||||
for (Entry<UUID, Integer> entry: watcher.amountOfCardsDrawnThisTurn.entrySet()) {
|
||||
for (Entry<UUID, Integer> 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<MiracleWatcher> {
|
|||
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<MiracleWatcher> {
|
|||
|
||||
|
||||
@Override
|
||||
public void reset() {
|
||||
public void reset() {
|
||||
amountOfCardsDrawnThisTurn.clear();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public MiracleWatcher copy() {
|
||||
|
|
Loading…
Add table
Reference in a new issue