[minor] formatting

This commit is contained in:
North 2012-07-03 21:25:57 +03:00
parent 4639abd279
commit d1f3e62d03

View file

@ -45,12 +45,12 @@ import mage.players.Player;
public class SkipNextPlayerUntapStepEffect extends OneShotEffect<SkipNextPlayerUntapStepEffect> { public class SkipNextPlayerUntapStepEffect extends OneShotEffect<SkipNextPlayerUntapStepEffect> {
public SkipNextPlayerUntapStepEffect() { public SkipNextPlayerUntapStepEffect() {
super(Constants.Outcome.Detriment); this("");
} }
public SkipNextPlayerUntapStepEffect(String text) { public SkipNextPlayerUntapStepEffect(String text) {
this(); super(Constants.Outcome.Detriment);
staticText = text; this.staticText = text;
} }
public SkipNextPlayerUntapStepEffect(SkipNextPlayerUntapStepEffect effect) { public SkipNextPlayerUntapStepEffect(SkipNextPlayerUntapStepEffect effect) {
@ -59,13 +59,13 @@ public class SkipNextPlayerUntapStepEffect extends OneShotEffect<SkipNextPlayerU
@Override @Override
public boolean apply(Game game, Ability source) { public boolean apply(Game game, Ability source) {
if (targetPointer != null) { if (targetPointer != null) {
Player player = game.getPlayer(targetPointer.getFirst(game, source)); Player player = game.getPlayer(targetPointer.getFirst(game, source));
if (player != null) { if (player != null) {
game.getState().getTurnMods().add(new TurnMod(player.getId(), PhaseStep.UNTAP)); game.getState().getTurnMods().add(new TurnMod(player.getId(), PhaseStep.UNTAP));
return true; return true;
} }
} }
return false; return false;
} }
@ -74,16 +74,15 @@ public class SkipNextPlayerUntapStepEffect extends OneShotEffect<SkipNextPlayerU
return new SkipNextPlayerUntapStepEffect(this); return new SkipNextPlayerUntapStepEffect(this);
} }
@Override @Override
public String getText(Mode mode) { public String getText(Mode mode) {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
if (staticText.length() > 0) { if (staticText.length() > 0) {
sb.append(staticText); sb.append(staticText);
} } else {
else { sb.append("target");
sb.append("target"); }
} sb.append("player skips his or her next untap step");
sb.append("player skips his or her next untap step"); return sb.toString();
return sb.toString();
} }
} }