mirror of
https://github.com/correl/mage.git
synced 2024-11-16 11:09:29 +00:00
* Revolutionary Rebuff - Fixed that the ommit of artifact spells did not work.
This commit is contained in:
parent
053fec43d7
commit
2c60990e46
1 changed files with 2 additions and 3 deletions
|
@ -35,7 +35,7 @@ import mage.constants.CardType;
|
||||||
import mage.constants.Rarity;
|
import mage.constants.Rarity;
|
||||||
import mage.filter.FilterSpell;
|
import mage.filter.FilterSpell;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SubtypePredicate;
|
import mage.filter.predicate.mageobject.CardTypePredicate;
|
||||||
import mage.target.TargetSpell;
|
import mage.target.TargetSpell;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -50,8 +50,7 @@ public class RevolutionaryRebuff extends CardImpl {
|
||||||
|
|
||||||
// Counter target nonartifact spell unless its controller pays 2.
|
// Counter target nonartifact spell unless its controller pays 2.
|
||||||
FilterSpell filter = new FilterSpell();
|
FilterSpell filter = new FilterSpell();
|
||||||
filter.add(Predicates.not(new SubtypePredicate("Artifact")));
|
filter.add(Predicates.not(new CardTypePredicate(CardType.ARTIFACT)));
|
||||||
|
|
||||||
this.getSpellAbility().addTarget(new TargetSpell(filter));
|
this.getSpellAbility().addTarget(new TargetSpell(filter));
|
||||||
this.getSpellAbility().addEffect(new CounterUnlessPaysEffect(new GenericManaCost(2)));
|
this.getSpellAbility().addEffect(new CounterUnlessPaysEffect(new GenericManaCost(2)));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue