forked from External/mage
37 lines
1.3 KiB
Java
37 lines
1.3 KiB
Java
package mage.cards.e;
|
|
|
|
import mage.abilities.effects.common.DamageAllEffect;
|
|
import mage.abilities.effects.common.ExileReturnBattlefieldNextEndStepTargetEffect;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.filter.StaticFilters;
|
|
import mage.target.TargetPermanent;
|
|
|
|
import java.util.UUID;
|
|
|
|
/**
|
|
* @author Jmlundeen
|
|
*/
|
|
public final class ExplosiveGetaway extends CardImpl {
|
|
|
|
public ExplosiveGetaway(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{R}{W}");
|
|
|
|
// Exile up to one target artifact or creature. Return it to the battlefield under its owner's control at the beginning of the next end step.
|
|
this.getSpellAbility().addEffect(new ExileReturnBattlefieldNextEndStepTargetEffect().withTextThatCard(false));
|
|
this.getSpellAbility().addTarget(new TargetPermanent(0, 1, StaticFilters.FILTER_PERMANENT_ARTIFACT_OR_CREATURE));
|
|
|
|
// Explosive Getaway deals 4 damage to each creature.
|
|
this.getSpellAbility().addEffect(new DamageAllEffect(4, StaticFilters.FILTER_PERMANENT_CREATURE).concatBy("<br>"));
|
|
}
|
|
|
|
private ExplosiveGetaway(final ExplosiveGetaway card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public ExplosiveGetaway copy() {
|
|
return new ExplosiveGetaway(this);
|
|
}
|
|
}
|