forked from External/mage
there were 3 enums to compare ints, refactored to 1
This commit is contained in:
parent
813d84274a
commit
cb693b5826
339 changed files with 1263 additions and 1225 deletions
|
|
@ -28,18 +28,19 @@
|
|||
|
||||
package mage.abilities.keyword;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.abilities.CountType;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.dynamicvalue.common.StaticValue;
|
||||
import mage.abilities.effects.common.ReturnToHandTargetEffect;
|
||||
import mage.filter.Filter;
|
||||
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;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* 702.45. Soulshift
|
||||
|
|
@ -75,7 +76,7 @@ public class SoulshiftAbility extends DiesTriggeredAbility {
|
|||
this.getTargets().clear();
|
||||
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(Filter.ComparisonType.LessThan, intValue + 1));
|
||||
filter.add(new ConvertedManaCostPredicate(CountType.FEWER_THAN, intValue + 1));
|
||||
filter.add(new SubtypePredicate("Spirit"));
|
||||
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