From b2863e74d1fefea419f754119a05240508da0e7c Mon Sep 17 00:00:00 2001 From: North Date: Sun, 29 Jul 2012 16:02:49 +0300 Subject: [PATCH] [minor] fix for rule text --- .../common/continious/BoostAllEffect.java | 19 ++++++++++--------- .../continious/GainAbilitySourceEffect.java | 2 +- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/Mage/src/mage/abilities/effects/common/continious/BoostAllEffect.java b/Mage/src/mage/abilities/effects/common/continious/BoostAllEffect.java index edf10f13d1..a8de945122 100644 --- a/Mage/src/mage/abilities/effects/common/continious/BoostAllEffect.java +++ b/Mage/src/mage/abilities/effects/common/continious/BoostAllEffect.java @@ -34,8 +34,6 @@ import mage.Constants.Outcome; import mage.Constants.SubLayer; import mage.abilities.Ability; import mage.abilities.dynamicvalue.DynamicValue; -import mage.abilities.dynamicvalue.common.DomainValue; -import mage.abilities.dynamicvalue.common.SignInversionDynamicValue; import mage.abilities.dynamicvalue.common.StaticValue; import mage.abilities.effects.ContinuousEffectImpl; import mage.filter.common.FilterCreaturePermanent; @@ -118,22 +116,25 @@ public class BoostAllEffect extends ContinuousEffectImpl { private void setText() { StringBuilder sb = new StringBuilder(); - if (excludeSource) + if (excludeSource) { sb.append("Other "); - sb.append(filter.getMessage()).append(" gets "); + } + sb.append(filter.getMessage()).append(" get "); String p = power.toString(); - if(!p.startsWith("-")) + if (!p.startsWith("-")) { sb.append("+"); + } sb.append(p).append("/"); String t = toughness.toString(); - if(!t.startsWith("-")){ - if(p.startsWith("-")) + if (!t.startsWith("-")) { + if (p.startsWith("-")) { sb.append("-"); - else + } else { sb.append("+"); + } } sb.append(t); - sb.append((duration==Duration.EndOfTurn?" until end of turn":"")); + sb.append((duration == Duration.EndOfTurn ? " until end of turn" : "")); sb.append(power.getMessage()); staticText = sb.toString(); } diff --git a/Mage/src/mage/abilities/effects/common/continious/GainAbilitySourceEffect.java b/Mage/src/mage/abilities/effects/common/continious/GainAbilitySourceEffect.java index 62eae93c2c..6adbc44cb5 100644 --- a/Mage/src/mage/abilities/effects/common/continious/GainAbilitySourceEffect.java +++ b/Mage/src/mage/abilities/effects/common/continious/GainAbilitySourceEffect.java @@ -56,7 +56,7 @@ public class GainAbilitySourceEffect extends ContinuousEffectImpl