forked from External/mage
refactored all instances of SubtypePredicate
This commit is contained in:
parent
3b8298e7c2
commit
86906ec25f
1659 changed files with 2039 additions and 3777 deletions
|
|
@ -10,7 +10,6 @@ import mage.abilities.effects.common.ReturnToHandTargetEffect;
|
|||
import mage.constants.SubType;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.predicate.mageobject.ConvertedManaCostPredicate;
|
||||
import mage.filter.predicate.mageobject.SubtypePredicate;
|
||||
import mage.game.Game;
|
||||
import mage.target.common.TargetCardInYourGraveyard;
|
||||
|
||||
|
|
@ -52,7 +51,7 @@ public class SoulshiftAbility extends DiesTriggeredAbility {
|
|||
int intValue = amount.calculate(game, this, null);
|
||||
FilterCard filter = new FilterCard("Spirit card with converted mana cost " + intValue + " or less from your graveyard");
|
||||
filter.add(new ConvertedManaCostPredicate(ComparisonType.FEWER_THAN, intValue + 1));
|
||||
filter.add(new SubtypePredicate(SubType.SPIRIT));
|
||||
filter.add(SubType.SPIRIT.getPredicate());
|
||||
this.addTarget(new TargetCardInYourGraveyard(filter));
|
||||
super.trigger(game, controllerId); //To change body of generated methods, choose Tools | Templates.
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue