1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-11 09:11:12 -09:00

Implement Tale's End.

This commit is contained in:
richard.coates 2019-06-29 13:09:49 +01:00
parent 1c9aa7904b
commit a7c06e53e0

View file

@ -0,0 +1,35 @@
package mage.cards.t;
import java.util.UUID;
import mage.abilities.effects.common.CounterTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.target.common.TargetActivatedOrTriggeredAbilityOrLegendarySpell;
/**
*
* @author rscoates
*/
public final class TalesEnd extends CardImpl {
public TalesEnd(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{U}");
// Counter target activated ability, triggered ability, or legendary spell.
// Counter target activated or triggered ability.
this.getSpellAbility().addEffect(new CounterTargetEffect());
this.getSpellAbility().addTarget(new TargetActivatedOrTriggeredAbilityOrLegendarySpell());
}
private TalesEnd(final TalesEnd card) {
super(card);
}
@Override
public TalesEnd copy() {
return new TalesEnd(this);
}
}