mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
minor refactoring
This commit is contained in:
parent
97b1b7fde4
commit
182d636078
7 changed files with 5 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 ");
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue