From f5093dfe8e5ec7effb999559700610a410db8b5b Mon Sep 17 00:00:00 2001 From: Oleg Agafonov Date: Wed, 15 Aug 2018 11:38:28 +0400 Subject: [PATCH] Fixed compilation errors (junky filter in Salvage Trader, fix in Thermal Detonator); --- Mage.Sets/src/mage/cards/s/SalvageTrader.java | 1 - Mage.Sets/src/mage/cards/t/ThermalDetonator.java | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Mage.Sets/src/mage/cards/s/SalvageTrader.java b/Mage.Sets/src/mage/cards/s/SalvageTrader.java index 3412430d50..40dce83fd8 100644 --- a/Mage.Sets/src/mage/cards/s/SalvageTrader.java +++ b/Mage.Sets/src/mage/cards/s/SalvageTrader.java @@ -94,7 +94,6 @@ class SalvageTraderEffect extends ContinuousEffectImpl { if(you != null && permanent1 != null) { FilterArtifactCard filterArtifactCard = new FilterArtifactCard(); filterArtifactCard.add(new ControllerPredicate(TargetController.OPPONENT)); - filterArtifactCard.add(new SpellZonePredicate(Zone.BATTLEFIELD)); filterArtifactCard.add(new ConvertedManaCostPredicate(ComparisonType.EQUAL_TO, permanent1.getConvertedManaCost())); FilterArtifactPermanent filterArtifactPermanent = new FilterArtifactPermanent(); diff --git a/Mage.Sets/src/mage/cards/t/ThermalDetonator.java b/Mage.Sets/src/mage/cards/t/ThermalDetonator.java index c57818d5ba..513c324653 100644 --- a/Mage.Sets/src/mage/cards/t/ThermalDetonator.java +++ b/Mage.Sets/src/mage/cards/t/ThermalDetonator.java @@ -13,6 +13,7 @@ import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.constants.Zone; import mage.filter.common.FilterCreatureOrPlayer; +import mage.filter.common.FilterCreaturePermanent; import mage.filter.predicate.Predicates; import mage.filter.predicate.mageobject.AbilityPredicate; import mage.target.common.TargetCreatureOrPlayer; @@ -26,7 +27,7 @@ public final class ThermalDetonator extends CardImpl { private static final FilterCreatureOrPlayer filter = new FilterCreatureOrPlayer("creature without spaceflight or target player"); static { - filter.add(Predicates.not(new AbilityPredicate(SpaceflightAbility.class))); + filter.getCreatureFilter().add(Predicates.not(new AbilityPredicate(SpaceflightAbility.class))); } public ThermalDetonator(UUID ownerId, CardSetInfo setInfo) {