mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 12:31:59 -08:00
Sonar fixes 19022019
This commit is contained in:
parent
872eea7326
commit
056226d83c
385 changed files with 472 additions and 475 deletions
|
|
@ -22,6 +22,7 @@ import mage.target.common.TargetCardInLibrary;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -51,16 +52,12 @@ public class FetchLandActivatedAbility extends ActivatedAbilityImpl {
|
|||
addEffect(new SearchLibraryPutInPlayEffect(target, false, true, Outcome.PutLandInPlay));
|
||||
}
|
||||
|
||||
public FetchLandActivatedAbility(FetchLandActivatedAbility ability) {
|
||||
private FetchLandActivatedAbility(FetchLandActivatedAbility ability) {
|
||||
super(ability);
|
||||
}
|
||||
|
||||
private String subTypeNames(Set<SubType> subTypes) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
for (SubType subType: subTypes) {
|
||||
sb.append(subType.getDescription()).append(" or ");
|
||||
}
|
||||
return sb.substring(0, sb.length() - 4);
|
||||
return subTypes.stream().map(SubType::getDescription).collect(Collectors.joining(" or "));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ public class LeavesBattlefieldAllTriggeredAbility extends TriggeredAbilityImpl {
|
|||
this.setTargetPointer = setTargetPointer;
|
||||
}
|
||||
|
||||
public LeavesBattlefieldAllTriggeredAbility(final LeavesBattlefieldAllTriggeredAbility ability) {
|
||||
private LeavesBattlefieldAllTriggeredAbility(final LeavesBattlefieldAllTriggeredAbility ability) {
|
||||
super(ability);
|
||||
filter = ability.filter;
|
||||
setTargetPointer = ability.setTargetPointer;
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ import java.util.Map;
|
|||
*/
|
||||
public class ManaSymbols extends ArrayList<ManaSymbol> {
|
||||
|
||||
private final static Map<ColoredManaSymbol, ManaSymbol> coloredManaMap = new EnumMap<ColoredManaSymbol, ManaSymbol>(ColoredManaSymbol.class) {{
|
||||
private static final Map<ColoredManaSymbol, ManaSymbol> coloredManaMap = new EnumMap<ColoredManaSymbol, ManaSymbol>(ColoredManaSymbol.class) {{
|
||||
put(ColoredManaSymbol.W, ManaSymbol.W);
|
||||
put(ColoredManaSymbol.U, ManaSymbol.U);
|
||||
put(ColoredManaSymbol.B, ManaSymbol.B);
|
||||
|
|
@ -29,7 +29,7 @@ public class ManaSymbols extends ArrayList<ManaSymbol> {
|
|||
* Contains all possible hybrid mana costs (each represents different hybrid mana symbol)
|
||||
* We'll use it for converting from hybrid mana cost to hybrid mana symbol.
|
||||
*/
|
||||
private final static Map<ManaSymbol, HybridManaCost> hybridManaMap = new EnumMap<ManaSymbol, HybridManaCost>(ManaSymbol.class) {{
|
||||
private static final Map<ManaSymbol, HybridManaCost> hybridManaMap = new EnumMap<ManaSymbol, HybridManaCost>(ManaSymbol.class) {{
|
||||
|
||||
/**
|
||||
* Build map of all possible hybrid mana symbols assigning corresponding instance of hybrid mana cost.
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ public class AdaptAbility extends ActivatedAbilityImpl {
|
|||
super(Zone.BATTLEFIELD, new AdaptEffect(adaptNumber), new ManaCostsImpl(manaCost));
|
||||
}
|
||||
|
||||
public AdaptAbility(final AdaptAbility ability) {
|
||||
private AdaptAbility(final AdaptAbility ability) {
|
||||
super(ability);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ import mage.players.Player;
|
|||
public class CascadeAbility extends TriggeredAbilityImpl {
|
||||
//20091005 - 702.82
|
||||
|
||||
private final static String REMINDERTEXT = " <i>(When you cast this spell, exile cards from the top of your library until you exile a nonland card that costs less."
|
||||
private static final String REMINDERTEXT = " <i>(When you cast this spell, exile cards from the top of your library until you exile a nonland card that costs less."
|
||||
+ " You may cast it without paying its mana cost. Put the exiled cards on the bottom in a random order.)</i>";
|
||||
private boolean withReminder;
|
||||
|
||||
|
|
|
|||
|
|
@ -110,8 +110,8 @@ public class HauntAbility extends TriggeredAbilityImpl {
|
|||
|
||||
class HauntExileAbility extends ZoneChangeTriggeredAbility {
|
||||
|
||||
private final static String RULE_TEXT_CREATURE = "Haunt <i>(When this creature dies, exile it haunting target creature.)</i>";
|
||||
private final static String RULE_TEXT_SPELL = "Haunt <i>(When this spell card is put into a graveyard after resolving, exile it haunting target creature.)</i>";
|
||||
private static final String RULE_TEXT_CREATURE = "Haunt <i>(When this creature dies, exile it haunting target creature.)</i>";
|
||||
private static final String RULE_TEXT_SPELL = "Haunt <i>(When this spell card is put into a graveyard after resolving, exile it haunting target creature.)</i>";
|
||||
|
||||
private boolean creatureHaunt;
|
||||
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ class SoulboundEntersSelfEffect extends OneShotEffect {
|
|||
*/
|
||||
class SoulbondEntersOtherAbility extends EntersBattlefieldAllTriggeredAbility {
|
||||
|
||||
private final static FilterCreaturePermanent soulbondFilter = new FilterCreaturePermanent();
|
||||
private static final FilterCreaturePermanent soulbondFilter = new FilterCreaturePermanent();
|
||||
|
||||
static {
|
||||
soulbondFilter.add(Predicates.not(new PairedPredicate()));
|
||||
|
|
|
|||
|
|
@ -22,8 +22,8 @@ import mage.players.Player;
|
|||
*/
|
||||
public class SunburstAbility extends EntersBattlefieldAbility {
|
||||
|
||||
private final static String ruleCreature = "Sunburst <i>(This enters the battlefield with a +1/+1 counter on it for each color of mana spent to cast it.)</i>";
|
||||
private final static String ruleNonCreature = "Sunburst <i>(This enters the battlefield with a charge counter on it for each color of mana spent to cast it.)</i>";
|
||||
private static final String ruleCreature = "Sunburst <i>(This enters the battlefield with a +1/+1 counter on it for each color of mana spent to cast it.)</i>";
|
||||
private static final String ruleNonCreature = "Sunburst <i>(This enters the battlefield with a charge counter on it for each color of mana spent to cast it.)</i>";
|
||||
private boolean isCreature;
|
||||
|
||||
public SunburstAbility(Card card) {
|
||||
|
|
|
|||
|
|
@ -23,8 +23,8 @@ import java.util.stream.Collectors;
|
|||
public abstract class ExpansionSet implements Serializable {
|
||||
|
||||
private static final Logger logger = Logger.getLogger(ExpansionSet.class);
|
||||
public final static CardGraphicInfo NON_FULL_USE_VARIOUS = new CardGraphicInfo(null, true);
|
||||
public final static CardGraphicInfo FULL_ART_BFZ_VARIOUS = new CardGraphicInfo(FrameStyle.BFZ_FULL_ART_BASIC, true);
|
||||
public static final CardGraphicInfo NON_FULL_USE_VARIOUS = new CardGraphicInfo(null, true);
|
||||
public static final CardGraphicInfo FULL_ART_BFZ_VARIOUS = new CardGraphicInfo(FrameStyle.BFZ_FULL_ART_BASIC, true);
|
||||
|
||||
|
||||
public class SetCardInfo implements Serializable {
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ import mage.watchers.common.PlanarRollWatcher;
|
|||
*/
|
||||
public class FieldsOfSummerPlane extends Plane {
|
||||
|
||||
private final static FilterSpell filter = new FilterSpell("a spell");
|
||||
private static final FilterSpell filter = new FilterSpell("a spell");
|
||||
|
||||
public FieldsOfSummerPlane() {
|
||||
this.setName("Plane - Fields of Summer");
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import mage.constants.SubType;
|
|||
|
||||
public final class AngelToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("AVR", "C14", "CFX", "GTC", "ISD", "M14", "ORI", "SOI", "ZEN", "C15", "MM3"));
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import mage.constants.SubType;
|
|||
|
||||
public final class BatToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("MMA", "C17"));
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import mage.constants.SubType;
|
|||
*/
|
||||
public final class BeastToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("C14", "LRW", "M15", "M14", "DDL", "M13", "M12", "DD3GVL", "NPH", "M11", "M10", "EVE", "MM3", "CMA", "E01"));
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import mage.constants.SubType;
|
|||
*/
|
||||
public final class BeastToken2 extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("ZEN", "C14", "DDD", "C15", "DD3GVL", "MM3", "CMA", "E01"));
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import mage.constants.SubType;
|
|||
*/
|
||||
public final class BelzenlokClericToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("DOM"));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ import mage.players.Player;
|
|||
*/
|
||||
public final class BelzenlokDemonToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("DOM"));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import mage.constants.SubType;
|
|||
|
||||
public final class BrudicladTelchorMyrToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("C18"));
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import mage.constants.SubType;
|
|||
*/
|
||||
public final class CatToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("SOM", "M13", "M14", "C14", "C15", "C17"));
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import mage.constants.SubType;
|
|||
*/
|
||||
public final class CatWarriorToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("PLC", "C17"));
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import java.util.List;
|
|||
*/
|
||||
public final class CentaurToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("RTR", "MM3", "RNA"));
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import mage.MageInt;
|
|||
*/
|
||||
public final class ChainersTormentNightmareToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("DOM"));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ import java.util.List;
|
|||
*/
|
||||
public final class ClueArtifactToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("SOI", "EDM"));
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import mage.constants.SubType;
|
|||
*/
|
||||
public final class DeathtouchRatToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("C17"));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ import mage.filter.common.FilterControlledPermanent;
|
|||
*/
|
||||
public final class DokaiWeaverofLifeToken extends TokenImpl {
|
||||
|
||||
final static FilterControlledPermanent filterLands = new FilterControlledLandPermanent("lands you control");
|
||||
static final FilterControlledPermanent filterLands = new FilterControlledLandPermanent("lands you control");
|
||||
|
||||
public DokaiWeaverofLifeToken() {
|
||||
super("Elemental", "X/X green Elemental creature token, where X is the number of lands you control");
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import mage.constants.SubType;
|
|||
*/
|
||||
public final class DragonToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("DTK", "MMA", "ALA", "MM3", "C17"));
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import mage.constants.SubType;
|
|||
*/
|
||||
public final class DragonToken2 extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("WWK", "10E", "BFZ", "C15", "CN2", "CMA"));
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import mage.constants.SubType;
|
|||
*/
|
||||
public final class DragonTokenGold extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("UST","H17"));
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import mage.MageInt;
|
|||
*/
|
||||
public final class EdgarMarkovToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("C17"));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import mage.constants.SubType;
|
|||
*/
|
||||
public final class EldraziHorrorToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Collections.singletonList("EMN"));
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ import mage.util.RandomUtil;
|
|||
*/
|
||||
public final class EldraziScionToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("BFZ", "OGW"));
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ import mage.util.RandomUtil;
|
|||
*/
|
||||
public final class EldraziSpawnToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("ROE", "MM2", "DDP", "C17"));
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import mage.constants.SubType;
|
|||
*/
|
||||
public final class ElementalShamanToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("C15", "DD3JVC", "DD2", "LRW"));
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import mage.constants.SubType;
|
|||
*/
|
||||
public final class ElementalToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("OGW", "CON", "DIS"));
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import mage.constants.SubType;
|
|||
*/
|
||||
public final class ElephantToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("C14", "CNS", "DDD", "MM2", "WWK", "OGW", "C15", "DD3GVL", "MM3", "CMA"));
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import mage.constants.SubType;
|
|||
*/
|
||||
public final class ElfToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("C14", "SHM", "EVG", "LRW", "ORI"));
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ import mage.abilities.keyword.FlyingAbility;
|
|||
*/
|
||||
public final class FaerieRogueToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("SHM", "MOR", "MMA", "MM2"));
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import mage.abilities.mana.GreenManaAbility;
|
|||
*/
|
||||
public final class FreyaliseLlanowarsFuryToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("C14", "CMA"));
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import mage.constants.SubType;
|
|||
*/
|
||||
public final class GermToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("NPH", "MBS", "SOM", "EMA", "C16"));
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import mage.constants.SubType;
|
|||
*/
|
||||
public final class GoatToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("EVE", "M13", "M14", "C14"));
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import java.util.List;
|
|||
*/
|
||||
public final class GoblinToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("10E", "ALA", "SOM", "M10", "NPH", "M13", "RTR",
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ import mage.constants.Zone;
|
|||
*/
|
||||
public final class GoldToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("BNG", "C17"));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import mage.MageInt;
|
|||
*/
|
||||
public final class GolemToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("MM2", "NPH", "SOM", "MM3"));
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import mage.abilities.keyword.ProtectionAbility;
|
|||
*/
|
||||
public final class HuntedCentaurToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("RTR", "MM3"));
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import mage.constants.SubType;
|
|||
*/
|
||||
public final class HuntedDragonKnightToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("ORI", "RTR", "C15"));
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import mage.constants.SubType;
|
|||
*/
|
||||
public final class InsectToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("M10", "MM2", "SOI"));
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ import mage.filter.predicate.mageobject.SubtypePredicate;
|
|||
*/
|
||||
public final class KalonianTwingroveTreefolkWarriorToken extends TokenImpl {
|
||||
|
||||
final static FilterControlledPermanent filterLands = new FilterControlledPermanent("Forests you control");
|
||||
static final FilterControlledPermanent filterLands = new FilterControlledPermanent("Forests you control");
|
||||
|
||||
static {
|
||||
filterLands.add(new SubtypePredicate(SubType.FOREST));
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public final class KarnConstructToken extends TokenImpl {
|
|||
filter.add(new CardTypePredicate(CardType.ARTIFACT));
|
||||
}
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("DOM"));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import mage.constants.SuperType;
|
|||
*/
|
||||
public final class KaroxBladewingDragonToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("DOM"));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import mage.util.RandomUtil;
|
|||
*/
|
||||
public final class KnightToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("ORI", "RTR", "C15", "CMA", "DOM"));
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import mage.abilities.keyword.FlyingAbility;
|
|||
*/
|
||||
public final class LeafdrakeRoostDrakeToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("C13", "CMA"));
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import mage.constants.SubType;
|
|||
|
||||
public final class MyrToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("C14", "MM2", "NPH", "SOM"));
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import mage.util.RandomUtil;
|
|||
*/
|
||||
public final class OviyaPashiriSageLifecrafterToken extends TokenImpl {
|
||||
|
||||
final static FilterControlledCreaturePermanent filterCreature = new FilterControlledCreaturePermanent("creatures you control");
|
||||
static final FilterControlledCreaturePermanent filterCreature = new FilterControlledCreaturePermanent("creatures you control");
|
||||
|
||||
public OviyaPashiriSageLifecrafterToken() {
|
||||
this(1);
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import mage.constants.SubType;
|
|||
|
||||
public final class PlantToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("WWK", "DDP", "OGW"));
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import mage.constants.SubType;
|
|||
*/
|
||||
public final class PrismToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Collections.singletonList("VIS"));
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import mage.util.RandomUtil;
|
|||
*/
|
||||
public final class SaprolingToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList(
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import mage.util.RandomUtil;
|
|||
*/
|
||||
public final class ServoToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Collections.singletonList("KLD"));
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import mage.constants.SubType;
|
|||
*/
|
||||
public final class SnakeToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("ZEN", "KTK", "MM2", "C15"));
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import mage.util.RandomUtil;
|
|||
*/
|
||||
public final class SoldierToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("10E", "M15", "C14", "ORI", "ALA", "DDF", "THS", "M12", "M13", "MM2", "MMA", "RTR",
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import mage.abilities.keyword.HasteAbility;
|
|||
*/
|
||||
public final class SoldierTokenWithHaste extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("GTC", "MM3"));
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ import mage.constants.SubType;
|
|||
*/
|
||||
public final class SpiderToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("ISD", "EMN", "C15", "SHM"));
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import mage.constants.SubType;
|
|||
*/
|
||||
public final class SpiritToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("CHK", "EMA", "C16"));
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import java.util.List;
|
|||
*/
|
||||
public final class SpiritWhiteToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("AVR", "C14", "CNS", "DDC", "DDK", "FRF", "ISD", "KTK", "M15", "MM2", "SHM",
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import mage.constants.SubType;
|
|||
*/
|
||||
public final class SquirrelToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Collections.singletonList("CNS"));
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import mage.util.RandomUtil;
|
|||
*/
|
||||
public final class ThopterColorlessToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("MBS", "ORI", "KLD"));
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import mage.constants.SubType;
|
|||
*/
|
||||
public final class ThrullToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Collections.singletonList("MM2"));
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import mage.ObjectColor;
|
|||
*/
|
||||
public final class TitaniaProtectorOfArgothElementalToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("C14", "CMA"));
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ import java.util.List;
|
|||
*/
|
||||
public final class TreasureToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("XLN", "RNA"));
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import mage.abilities.keyword.FlyingAbility;
|
|||
*/
|
||||
public final class UtvaraHellkiteDragonToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("C17"));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import mage.abilities.keyword.TrampleAbility;
|
|||
*/
|
||||
public final class ValdukElementalToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("DOM"));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import mage.abilities.keyword.FlyingAbility;
|
|||
*/
|
||||
public final class WasitoraCatDragonToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("C17"));
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import mage.constants.SubType;
|
|||
*/
|
||||
public final class WolfToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("BNG", "C14", "CNS", "FNMP", "ISD", "LRW", "M10", "M14", "MM2", "SHM", "SOM", "ZEN", "SOI", "C15", "M15"));
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import mage.abilities.keyword.TrampleAbility;
|
|||
*/
|
||||
public final class WurmToken2 extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("RTR", "MM3"));
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import mage.MageInt;
|
|||
*/
|
||||
public final class WurmToken3 extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("AKH"));
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import mage.constants.SubType;
|
|||
|
||||
public final class ZombieKnightToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("DOM"));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import java.util.List;
|
|||
*/
|
||||
public final class ZombieToken extends TokenImpl {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("10E", "M10", "M11", "M12", "M13", "M14", "M15", "MBS", "ALA", "ISD", "C14", "C15", "C16", "C17", "CNS",
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ import mage.filter.predicate.permanent.CounterPredicate;
|
|||
*/
|
||||
public class TargetPermanentOrPlayerWithCounter extends TargetPermanentOrPlayer {
|
||||
|
||||
protected final FilterPermanentOrPlayerWithCounter filter;
|
||||
protected final FilterPermanentOrPlayerWithCounter targetFilter;
|
||||
|
||||
public TargetPermanentOrPlayerWithCounter() {
|
||||
this(1, 1);
|
||||
|
|
@ -33,16 +33,16 @@ public class TargetPermanentOrPlayerWithCounter extends TargetPermanentOrPlayer
|
|||
|
||||
public TargetPermanentOrPlayerWithCounter(int minNumTargets, int maxNumTargets, boolean notTarget) {
|
||||
super(minNumTargets, maxNumTargets, notTarget);
|
||||
this.filter = new FilterPermanentOrPlayerWithCounter();
|
||||
this.targetFilter = new FilterPermanentOrPlayerWithCounter();
|
||||
this.filterPermanent = new FilterPermanent();
|
||||
this.filterPermanent.add(new CounterPredicate(null));
|
||||
this.targetName = filter.getMessage();
|
||||
this.targetName = targetFilter.getMessage();
|
||||
}
|
||||
|
||||
public TargetPermanentOrPlayerWithCounter(final TargetPermanentOrPlayerWithCounter target) {
|
||||
super(target);
|
||||
this.filter = target.filter.copy();
|
||||
super.setFilter(this.filter);
|
||||
this.targetFilter = target.targetFilter.copy();
|
||||
super.setFilter(this.targetFilter);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue