forked from External/mage
33 lines
907 B
Java
33 lines
907 B
Java
package mage.cards.b;
|
|
|
|
import mage.abilities.effects.common.ReturnToHandTargetEffect;
|
|
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 TheElk801
|
|
*/
|
|
public final class BounceOff extends CardImpl {
|
|
|
|
public BounceOff(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{U}");
|
|
|
|
// Return target creature or Vehicle to its owner's hand.
|
|
this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
|
|
this.getSpellAbility().addTarget(new TargetPermanent(StaticFilters.FILTER_PERMANENT_CREATURE_OR_VEHICLE));
|
|
}
|
|
|
|
private BounceOff(final BounceOff card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public BounceOff copy() {
|
|
return new BounceOff(this);
|
|
}
|
|
}
|