forked from External/mage
* create common class for copying the next spell cast * [DMU] Implemented Twinferno * add filter to CopyNextSpellDelayedTriggeredAbility
31 lines
961 B
Java
31 lines
961 B
Java
package mage.cards.t;
|
|
|
|
import mage.abilities.common.delayed.CopyNextSpellDelayedTriggeredAbility;
|
|
import mage.abilities.effects.common.CreateDelayedTriggeredAbilityEffect;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
|
|
import java.util.UUID;
|
|
|
|
/**
|
|
* @author TheElk801
|
|
*/
|
|
public final class TeachByExample extends CardImpl {
|
|
|
|
public TeachByExample(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{U/R}{U/R}");
|
|
|
|
// When you cast your next instant or sorcery spell this turn, copy that spell. You may choose new targets for the copy.
|
|
this.getSpellAbility().addEffect(new CreateDelayedTriggeredAbilityEffect(new CopyNextSpellDelayedTriggeredAbility()));
|
|
}
|
|
|
|
private TeachByExample(final TeachByExample card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public TeachByExample copy() {
|
|
return new TeachByExample(this);
|
|
}
|
|
}
|