forked from External/mage
* adjust ExileThenReturnTargetEffect * initial rework ExileReturnBattlefieldNextEndStepTargetEffect (test coverage provided by CloudshiftTest) * refactor some more cards * refactor more straightforward cards * add params and more refactoring * text fixes * maintain order in set * fix Lae'zel's Acrobatics and add test
33 lines
1 KiB
Java
33 lines
1 KiB
Java
package mage.cards.l;
|
|
|
|
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 LoneFox
|
|
*/
|
|
public final class Liberate extends CardImpl {
|
|
|
|
public Liberate(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{W}");
|
|
|
|
// Exile target creature you control. Return that card to the battlefield under its owner's control at the beginning of the next end step.
|
|
this.getSpellAbility().addEffect(new ExileReturnBattlefieldNextEndStepTargetEffect());
|
|
this.getSpellAbility().addTarget(new TargetPermanent(StaticFilters.FILTER_PERMANENT_CREATURE_CONTROLLED));
|
|
}
|
|
|
|
private Liberate(final Liberate card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public Liberate copy() {
|
|
return new Liberate(this);
|
|
}
|
|
}
|