mirror of
https://github.com/correl/mage.git
synced 2025-01-13 19:11:33 +00:00
fixed Twincast targeting any spell (fixes #7674)
This commit is contained in:
parent
4874ad31c1
commit
8400127de1
1 changed files with 4 additions and 5 deletions
|
@ -1,7 +1,5 @@
|
||||||
|
|
||||||
package mage.cards.t;
|
package mage.cards.t;
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
import mage.abilities.effects.common.CopyTargetSpellEffect;
|
import mage.abilities.effects.common.CopyTargetSpellEffect;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
|
@ -9,18 +7,19 @@ import mage.constants.CardType;
|
||||||
import mage.filter.StaticFilters;
|
import mage.filter.StaticFilters;
|
||||||
import mage.target.TargetSpell;
|
import mage.target.TargetSpell;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @author Loki
|
* @author Loki
|
||||||
*/
|
*/
|
||||||
public final class Twincast extends CardImpl {
|
public final class Twincast extends CardImpl {
|
||||||
|
|
||||||
public Twincast(UUID ownerId, CardSetInfo setInfo) {
|
public Twincast(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{U}{U}");
|
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{U}{U}");
|
||||||
|
|
||||||
// Copy target instant or sorcery spell. You may choose new targets for the copy.
|
// Copy target instant or sorcery spell. You may choose new targets for the copy.
|
||||||
this.getSpellAbility().addEffect(new CopyTargetSpellEffect());
|
this.getSpellAbility().addEffect(new CopyTargetSpellEffect());
|
||||||
this.getSpellAbility().addTarget(new TargetSpell());
|
this.getSpellAbility().addTarget(new TargetSpell(StaticFilters.FILTER_SPELL_INSTANT_OR_SORCERY));
|
||||||
}
|
}
|
||||||
|
|
||||||
private Twincast(final Twincast card) {
|
private Twincast(final Twincast card) {
|
||||||
|
|
Loading…
Reference in a new issue