forked from External/mage
51 lines
1.6 KiB
Java
51 lines
1.6 KiB
Java
package mage.cards.m;
|
|
|
|
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
|
|
import mage.abilities.effects.common.continuous.BoostAllEffect;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.constants.Duration;
|
|
import mage.constants.SubType;
|
|
import mage.constants.TargetController;
|
|
import mage.filter.StaticFilters;
|
|
import mage.filter.common.FilterLandPermanent;
|
|
|
|
import java.util.UUID;
|
|
|
|
|
|
/**
|
|
* @author North
|
|
*/
|
|
public final class Mutilate extends CardImpl {
|
|
|
|
private static final String ruleText = "All creatures get -1/-1 until end of turn for each Swamp you control";
|
|
|
|
private static final FilterLandPermanent filter = new FilterLandPermanent("Swamp you control");
|
|
|
|
static {
|
|
filter.add(SubType.SWAMP.getPredicate());
|
|
filter.add(TargetController.YOU.getControllerPredicate());
|
|
}
|
|
|
|
public Mutilate(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{B}{B}");
|
|
|
|
|
|
// All creatures get -1/-1 until end of turn for each Swamp you control.
|
|
PermanentsOnBattlefieldCount count = new PermanentsOnBattlefieldCount(filter, -1);
|
|
this.getSpellAbility().addEffect(
|
|
new BoostAllEffect(count, count, Duration.EndOfTurn, StaticFilters.FILTER_PERMANENT_CREATURES, false, null, true)
|
|
.setText(ruleText)
|
|
);
|
|
}
|
|
|
|
private Mutilate(final Mutilate card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public Mutilate copy() {
|
|
return new Mutilate(this);
|
|
}
|
|
}
|