mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 05:09:16 -08:00
[refactoring] Fixed issues caused by notCardType.
Removed notCardType - it was a relic from previous implementation. Renamed notScopeCardType to scopeNotCardType. Renamed notCardTypeList to notCardType for consistency with cardType.
This commit is contained in:
parent
ed877f772b
commit
4639abd279
13 changed files with 23 additions and 45 deletions
|
|
@ -58,7 +58,7 @@ public class DualCasting extends CardImpl<DualCasting> {
|
|||
static {
|
||||
filter.getCardType().add(CardType.INSTANT);
|
||||
filter.getCardType().add(CardType.SORCERY);
|
||||
filter.setNotScopeCardType(Filter.ComparisonScope.Any);
|
||||
filter.setScopeCardType(Filter.ComparisonScope.Any);
|
||||
}
|
||||
|
||||
public DualCasting(UUID ownerId) {
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ public class PeerThroughDepths extends CardImpl<PeerThroughDepths> {
|
|||
static {
|
||||
filter.getCardType().add(CardType.SORCERY);
|
||||
filter.getCardType().add(CardType.INSTANT);
|
||||
filter.setNotScopeCardType(ComparisonScope.Any);
|
||||
filter.setScopeCardType(ComparisonScope.Any);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -46,7 +46,6 @@ public class Countersquall extends CardImpl<Countersquall> {
|
|||
|
||||
static {
|
||||
filter.getNotCardType().add(CardType.CREATURE);
|
||||
filter.setNotCardType(true);
|
||||
}
|
||||
|
||||
public Countersquall(UUID ownerId) {
|
||||
|
|
|
|||
|
|
@ -56,7 +56,6 @@ public class NicolBolasPlaneswalker extends CardImpl<NicolBolasPlaneswalker> {
|
|||
|
||||
static {
|
||||
filter.getNotCardType().add(CardType.CREATURE);
|
||||
filter.setNotCardType(true);
|
||||
}
|
||||
|
||||
public NicolBolasPlaneswalker(UUID ownerId) {
|
||||
|
|
|
|||
|
|
@ -38,8 +38,8 @@ import mage.abilities.costs.common.TapSourceCost;
|
|||
import mage.abilities.effects.common.ReturnToHandTargetEffect;
|
||||
import mage.abilities.effects.common.continious.GainAbilityTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.filter.Filter;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterNonlandPermanent;
|
||||
import mage.target.TargetPermanent;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
|
|
@ -49,13 +49,7 @@ import mage.target.common.TargetCreaturePermanent;
|
|||
*/
|
||||
public class BanishingKnack extends CardImpl<BanishingKnack> {
|
||||
|
||||
private final static FilterPermanent filter = new FilterPermanent("nonland permanent");
|
||||
|
||||
static {
|
||||
filter.getCardType().add(CardType.LAND);
|
||||
filter.setNotCardType(true);
|
||||
filter.setScopeCardType(Filter.ComparisonScope.Any);
|
||||
}
|
||||
private final static FilterPermanent filter = new FilterNonlandPermanent();
|
||||
|
||||
public BanishingKnack(UUID ownerId) {
|
||||
super(ownerId, 17, "Banishing Knack", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{U}");
|
||||
|
|
|
|||
|
|
@ -45,7 +45,6 @@ public class Bramblecrush extends CardImpl<Bramblecrush> {
|
|||
|
||||
static {
|
||||
filter.getNotCardType().add(CardType.CREATURE);
|
||||
filter.setNotCardType(true);
|
||||
}
|
||||
|
||||
public Bramblecrush(UUID ownerId) {
|
||||
|
|
|
|||
|
|
@ -35,8 +35,8 @@ import mage.Constants.Rarity;
|
|||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.filter.Filter;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterNonlandPermanent;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
|
||||
|
|
@ -50,8 +50,9 @@ public class PlanarCleansing extends CardImpl<PlanarCleansing> {
|
|||
super(ownerId, 24, "Planar Cleansing", Rarity.RARE, new CardType[]{CardType.SORCERY}, "{3}{W}{W}{W}");
|
||||
this.expansionSetCode = "M10";
|
||||
this.color.setWhite(true);
|
||||
this.getSpellAbility().addEffect(new PlanarCleansingEffect());
|
||||
|
||||
// Destroy all nonland permanents.
|
||||
this.getSpellAbility().addEffect(new PlanarCleansingEffect());
|
||||
}
|
||||
|
||||
public PlanarCleansing(final PlanarCleansing card) {
|
||||
|
|
@ -66,13 +67,7 @@ public class PlanarCleansing extends CardImpl<PlanarCleansing> {
|
|||
|
||||
class PlanarCleansingEffect extends OneShotEffect<PlanarCleansingEffect> {
|
||||
|
||||
private final static FilterPermanent filter = new FilterPermanent("");
|
||||
|
||||
static {
|
||||
filter.getCardType().add(CardType.LAND);
|
||||
filter.setNotCardType(true);
|
||||
filter.setScopeCardType(Filter.ComparisonScope.Any);
|
||||
}
|
||||
private final static FilterPermanent filter = new FilterNonlandPermanent();
|
||||
|
||||
public PlanarCleansingEffect() {
|
||||
super(Constants.Outcome.DestroyPermanent);
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ public class MuddleTheMixture extends CardImpl<MuddleTheMixture> {
|
|||
static {
|
||||
filter.getCardType().add(CardType.INSTANT);
|
||||
filter.getCardType().add(CardType.SORCERY);
|
||||
filter.setNotScopeCardType(Filter.ComparisonScope.Any);
|
||||
filter.setScopeCardType(Filter.ComparisonScope.Any);
|
||||
}
|
||||
|
||||
public MuddleTheMixture(UUID ownerId) {
|
||||
|
|
|
|||
|
|
@ -51,8 +51,7 @@ public class Magmaw extends CardImpl<Magmaw> {
|
|||
private static final FilterControlledPermanent filter = new FilterControlledPermanent("nonland permanent");
|
||||
|
||||
static {
|
||||
filter.getCardType().add(CardType.LAND);
|
||||
filter.setNotCardType(true);
|
||||
filter.getNotCardType().add(CardType.LAND);
|
||||
}
|
||||
|
||||
public Magmaw(UUID ownerId) {
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ public class Cursecatcher extends CardImpl<Cursecatcher> {
|
|||
static {
|
||||
filter.getCardType().add(CardType.INSTANT);
|
||||
filter.getCardType().add(CardType.SORCERY);
|
||||
filter.setNotScopeCardType(ComparisonScope.Any);
|
||||
filter.setScopeCardType(ComparisonScope.Any);
|
||||
}
|
||||
|
||||
public Cursecatcher(UUID ownerId) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue