mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Fixed compilation errors (junky filter in Salvage Trader, fix in Thermal Detonator);
This commit is contained in:
parent
1322bd3c23
commit
f5093dfe8e
2 changed files with 2 additions and 2 deletions
|
@ -94,7 +94,6 @@ class SalvageTraderEffect extends ContinuousEffectImpl {
|
||||||
if(you != null && permanent1 != null) {
|
if(you != null && permanent1 != null) {
|
||||||
FilterArtifactCard filterArtifactCard = new FilterArtifactCard();
|
FilterArtifactCard filterArtifactCard = new FilterArtifactCard();
|
||||||
filterArtifactCard.add(new ControllerPredicate(TargetController.OPPONENT));
|
filterArtifactCard.add(new ControllerPredicate(TargetController.OPPONENT));
|
||||||
filterArtifactCard.add(new SpellZonePredicate(Zone.BATTLEFIELD));
|
|
||||||
filterArtifactCard.add(new ConvertedManaCostPredicate(ComparisonType.EQUAL_TO, permanent1.getConvertedManaCost()));
|
filterArtifactCard.add(new ConvertedManaCostPredicate(ComparisonType.EQUAL_TO, permanent1.getConvertedManaCost()));
|
||||||
|
|
||||||
FilterArtifactPermanent filterArtifactPermanent = new FilterArtifactPermanent();
|
FilterArtifactPermanent filterArtifactPermanent = new FilterArtifactPermanent();
|
||||||
|
|
|
@ -13,6 +13,7 @@ import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.common.FilterCreatureOrPlayer;
|
import mage.filter.common.FilterCreatureOrPlayer;
|
||||||
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.AbilityPredicate;
|
import mage.filter.predicate.mageobject.AbilityPredicate;
|
||||||
import mage.target.common.TargetCreatureOrPlayer;
|
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");
|
private static final FilterCreatureOrPlayer filter = new FilterCreatureOrPlayer("creature without spaceflight or target player");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(Predicates.not(new AbilityPredicate(SpaceflightAbility.class)));
|
filter.getCreatureFilter().add(Predicates.not(new AbilityPredicate(SpaceflightAbility.class)));
|
||||||
}
|
}
|
||||||
|
|
||||||
public ThermalDetonator(UUID ownerId, CardSetInfo setInfo) {
|
public ThermalDetonator(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
Loading…
Reference in a new issue