From d1f3e62d03e67781edd3e355c4a390bf106ebd68 Mon Sep 17 00:00:00 2001 From: North Date: Tue, 3 Jul 2012 21:25:57 +0300 Subject: [PATCH] [minor] formatting --- .../common/SkipNextPlayerUntapStepEffect.java | 41 +++++++++---------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/Mage/src/mage/abilities/effects/common/SkipNextPlayerUntapStepEffect.java b/Mage/src/mage/abilities/effects/common/SkipNextPlayerUntapStepEffect.java index c7ae0d7d5db..093890196b4 100644 --- a/Mage/src/mage/abilities/effects/common/SkipNextPlayerUntapStepEffect.java +++ b/Mage/src/mage/abilities/effects/common/SkipNextPlayerUntapStepEffect.java @@ -45,12 +45,12 @@ import mage.players.Player; public class SkipNextPlayerUntapStepEffect extends OneShotEffect { public SkipNextPlayerUntapStepEffect() { - super(Constants.Outcome.Detriment); + this(""); } - public SkipNextPlayerUntapStepEffect(String text) { - this(); - staticText = text; + public SkipNextPlayerUntapStepEffect(String text) { + super(Constants.Outcome.Detriment); + this.staticText = text; } public SkipNextPlayerUntapStepEffect(SkipNextPlayerUntapStepEffect effect) { @@ -59,13 +59,13 @@ public class SkipNextPlayerUntapStepEffect extends OneShotEffect 0) { - sb.append(staticText); - } - else { - sb.append("target"); - } - sb.append("player skips his or her next untap step"); - return sb.toString(); + StringBuilder sb = new StringBuilder(); + if (staticText.length() > 0) { + sb.append(staticText); + } else { + sb.append("target"); + } + sb.append("player skips his or her next untap step"); + return sb.toString(); } }