mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 05:22:02 -08:00
Replaced several custom "noncreature spell" filters with the main static one available. (#8625)
This commit is contained in:
parent
d030848552
commit
3a9543d847
14 changed files with 41 additions and 128 deletions
|
|
@ -2,25 +2,17 @@ package mage.abilities.keyword;
|
|||
|
||||
import mage.abilities.common.SpellCastControllerTriggeredAbility;
|
||||
import mage.abilities.effects.common.continuous.BoostSourceEffect;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.filter.FilterSpell;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.filter.StaticFilters;
|
||||
|
||||
/**
|
||||
* @author LevelX2
|
||||
*/
|
||||
public class ProwessAbility extends SpellCastControllerTriggeredAbility {
|
||||
|
||||
private static final FilterSpell filterNonCreatureSpell = new FilterSpell("noncreature spell");
|
||||
|
||||
static {
|
||||
filterNonCreatureSpell.add(Predicates.not(CardType.CREATURE.getPredicate()));
|
||||
}
|
||||
|
||||
public ProwessAbility() {
|
||||
super(new BoostSourceEffect(1, 1, Duration.EndOfTurn), false);
|
||||
this.filter = filterNonCreatureSpell;
|
||||
this.filter = StaticFilters.FILTER_SPELL_NON_CREATURE;
|
||||
}
|
||||
|
||||
public ProwessAbility(final ProwessAbility ability) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue