mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
fixed confusing Artful Takedown targeting
This commit is contained in:
parent
830b64242e
commit
7e799ef5bc
1 changed files with 15 additions and 5 deletions
|
@ -8,6 +8,7 @@ import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
import mage.constants.Duration;
|
import mage.constants.Duration;
|
||||||
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
import mage.target.common.TargetCreaturePermanent;
|
import mage.target.common.TargetCreaturePermanent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -16,6 +17,11 @@ import mage.target.common.TargetCreaturePermanent;
|
||||||
*/
|
*/
|
||||||
public final class ArtfulTakedown extends CardImpl {
|
public final class ArtfulTakedown extends CardImpl {
|
||||||
|
|
||||||
|
private static final FilterCreaturePermanent filter1
|
||||||
|
= new FilterCreaturePermanent("creature (to tap)");
|
||||||
|
private static final FilterCreaturePermanent filter2
|
||||||
|
= new FilterCreaturePermanent("creature (to shrink)");
|
||||||
|
|
||||||
public ArtfulTakedown(UUID ownerId, CardSetInfo setInfo) {
|
public ArtfulTakedown(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{U}{B}");
|
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{U}{B}");
|
||||||
|
|
||||||
|
@ -24,13 +30,17 @@ public final class ArtfulTakedown extends CardImpl {
|
||||||
this.getSpellAbility().getModes().setMaxModes(2);
|
this.getSpellAbility().getModes().setMaxModes(2);
|
||||||
|
|
||||||
// • Tap target creature.
|
// • Tap target creature.
|
||||||
this.getSpellAbility().addEffect(new TapTargetEffect());
|
this.getSpellAbility().addEffect(
|
||||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
new TapTargetEffect().setText("tap target creature")
|
||||||
|
);
|
||||||
|
this.getSpellAbility().addTarget(new TargetCreaturePermanent(filter1));
|
||||||
|
|
||||||
// • Target creature gets -2/-4 until end of turn.
|
// • Target creature gets -2/-4 until end of turn.
|
||||||
Mode mode = new Mode();
|
Mode mode = new Mode(
|
||||||
mode.getEffects().add(new BoostTargetEffect(-2, -4, Duration.EndOfTurn));
|
new BoostTargetEffect(-2, -4, Duration.EndOfTurn)
|
||||||
mode.getTargets().add(new TargetCreaturePermanent());
|
.setText("target creature gets -2/-4 until end of turn")
|
||||||
|
);
|
||||||
|
mode.addTarget(new TargetCreaturePermanent(filter2));
|
||||||
this.getSpellAbility().addMode(mode);
|
this.getSpellAbility().addMode(mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue