minor refactoring

This commit is contained in:
North 2012-01-01 22:54:18 +02:00
parent 97b1b7fde4
commit 182d636078
7 changed files with 5 additions and 9 deletions

View file

@ -34,7 +34,6 @@ import mage.Constants.CardType;
import mage.Constants.Rarity;
import mage.abilities.Ability;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.Effect;
import mage.abilities.effects.PreventionEffectImpl;
import mage.cards.CardImpl;
import mage.game.Game;
@ -107,4 +106,4 @@ class PersonalSanctuaryEffect extends PreventionEffectImpl<PersonalSanctuaryEffe
public PersonalSanctuaryEffect copy() {
return new PersonalSanctuaryEffect(this);
}
}
}

View file

@ -30,7 +30,6 @@ package mage.sets.tempest;
import java.util.UUID;
import mage.Constants.CardType;
import mage.Constants.Rarity;
import mage.abilities.Ability;
import mage.abilities.effects.common.CounterTargetEffect;
import mage.cards.CardImpl;
import mage.target.TargetSpell;

View file

@ -31,11 +31,9 @@ import java.util.UUID;
import static mage.Constants.Zone;
import mage.Constants;
import mage.Constants.CardType;
import mage.Constants.Rarity;
import mage.abilities.TriggeredAbilityImpl;
import mage.abilities.effects.Effect;
import mage.abilities.effects.common.DamageTargetEffect;
import mage.cards.CardImpl;
import mage.game.Game;

View file

@ -29,7 +29,6 @@ package mage.abilities.effects.common;
import java.util.UUID;
import mage.Constants.Outcome;
import mage.Constants.TargetController;
import mage.abilities.Ability;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.dynamicvalue.common.StaticValue;

View file

@ -83,7 +83,10 @@ public class GainAbilityTargetEffect extends ContinuousEffectImpl<GainAbilityTar
StringBuilder sb = new StringBuilder();
Target target = mode.getTargets().get(0);
if(target.getNumberOfTargets() > 1){
sb.append(target.getNumberOfTargets()).append(" target ").append(target.getTargetName()).append(" gain ");
if (target.getNumberOfTargets() < target.getMaxNumberOfTargets()) {
sb.append("Up to");
}
sb.append(target.getMaxNumberOfTargets()).append(" target ").append(target.getTargetName()).append(" gain ");
} else {
sb.append("Target ").append(target.getTargetName()).append(" gains ");
}

View file

@ -39,7 +39,6 @@ import mage.abilities.SpellAbility;
import mage.game.Game;
import mage.game.events.GameEvent;
import mage.watchers.Watcher;
import mage.watchers.Watchers;
public interface Card extends MageObject {

View file

@ -49,7 +49,6 @@ import mage.game.Game;
import mage.game.events.GameEvent;
import mage.players.Player;
import mage.target.Target;
import mage.watchers.Watchers;
import java.util.List;
import java.util.UUID;