mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
removed some redundant classes
This commit is contained in:
parent
29efa7b067
commit
5fa660a1d8
8 changed files with 6 additions and 82 deletions
|
|
@ -19,7 +19,6 @@ import mage.counters.CounterType;
|
|||
import mage.filter.Filter;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.predicate.permanent.CardCounterPredicate;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.players.Player;
|
||||
|
|
@ -69,7 +68,7 @@ public final class DustOfMoments extends CardImpl {
|
|||
permFilter.add(CounterType.TIME.getPredicate());
|
||||
|
||||
this.exiledFilter = new FilterCard("permanent and each suspended card");
|
||||
exiledFilter.add(new CardCounterPredicate(CounterType.TIME));
|
||||
exiledFilter.add(CounterType.TIME.getPredicate());
|
||||
setText();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ import mage.constants.Outcome;
|
|||
import mage.counters.CounterType;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.predicate.mageobject.AbilityPredicate;
|
||||
import mage.filter.predicate.other.CounterCardPredicate;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.target.common.TargetArtifactPermanent;
|
||||
|
|
@ -35,7 +34,7 @@ public final class FuryCharm extends CardImpl {
|
|||
|
||||
private static final FilterCard filter = new FilterCard("suspended card");
|
||||
static {
|
||||
filter.add(new CounterCardPredicate(CounterType.TIME));
|
||||
filter.add(CounterType.TIME.getPredicate());
|
||||
filter.add(new AbilityPredicate(SuspendAbility.class));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ import mage.cards.*;
|
|||
import mage.constants.*;
|
||||
import mage.counters.CounterType;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.predicate.other.CounterCardPredicate;
|
||||
import mage.game.ExileZone;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.token.KarnConstructToken;
|
||||
|
|
@ -125,7 +124,7 @@ class KarnMinus1Effect extends OneShotEffect {
|
|||
private static final FilterCard filter = new FilterCard("card you own with a silver counter on it in exile");
|
||||
|
||||
static {
|
||||
filter.add(new CounterCardPredicate(CounterType.SILVER));
|
||||
filter.add(CounterType.SILVER.getPredicate());
|
||||
}
|
||||
|
||||
public KarnMinus1Effect() {
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@ import mage.constants.SubType;
|
|||
import mage.constants.Zone;
|
||||
import mage.counters.CounterType;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.predicate.other.CounterCardPredicate;
|
||||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
import mage.target.common.TargetCardInYourGraveyard;
|
||||
|
|
@ -36,7 +35,7 @@ public final class MaintenanceDroid extends CardImpl {
|
|||
private static final FilterCard filter = new FilterCard("target card you own with a repair counter on it");
|
||||
|
||||
static {
|
||||
filter.add(new CounterCardPredicate(CounterType.REPAIR));
|
||||
filter.add(CounterType.REPAIR.getPredicate());
|
||||
}
|
||||
|
||||
public MaintenanceDroid(UUID ownerId, CardSetInfo setInfo) {
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ import mage.constants.Zone;
|
|||
import mage.counters.CounterType;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.filter.predicate.other.CounterCardPredicate;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.players.Player;
|
||||
|
|
@ -120,7 +119,7 @@ class MairsilThePretenderGainAbilitiesEffect extends ContinuousEffectImpl {
|
|||
private static final FilterCard filter = new FilterCard();
|
||||
|
||||
static {
|
||||
filter.add(new CounterCardPredicate(CounterType.CAGE));
|
||||
filter.add(CounterType.CAGE.getPredicate());
|
||||
}
|
||||
|
||||
public MairsilThePretenderGainAbilitiesEffect() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue