Reusing Essence Capture +1/+1 counter effect

This commit is contained in:
Mike Cunningham 2025-04-06 09:13:36 -04:00
parent 0ad8e8e181
commit a186a6f21e

View file

@ -1,6 +1,8 @@
package mage.cards.a; package mage.cards.a;
import java.util.UUID; import java.util.UUID;
import mage.abilities.effects.Effect;
import mage.abilities.effects.common.ExileCardYouChooseTargetOpponentEffect; import mage.abilities.effects.common.ExileCardYouChooseTargetOpponentEffect;
import mage.abilities.effects.common.counter.AddCountersTargetEffect; import mage.abilities.effects.common.counter.AddCountersTargetEffect;
import mage.cards.CardImpl; import mage.cards.CardImpl;
@ -10,7 +12,8 @@ import mage.constants.Outcome;
import mage.counters.CounterType; import mage.counters.CounterType;
import mage.filter.StaticFilters; import mage.filter.StaticFilters;
import mage.target.TargetPlayer; import mage.target.TargetPlayer;
import mage.target.common.TargetCreaturePermanent; import mage.target.common.TargetControlledCreaturePermanent;
import mage.target.targetpointer.SecondTargetPointer;
/** /**
* Aggressive Negotiations implementation * Aggressive Negotiations implementation
@ -22,13 +25,16 @@ public final class AggressiveNegotiations extends CardImpl {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{B}"); super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{B}");
// Target opponent reveals their hand. You choose a nonland card from it. That player exiles that card. // Target opponent reveals their hand. You choose a nonland card from it. That player exiles that card.
Effect effect1 = new ExileCardYouChooseTargetOpponentEffect(StaticFilters.FILTER_CARD_NON_LAND);
effect1.setText("Target player reveals their hand. You choose a nonland card from it and exile that card.");
this.getSpellAbility().addEffect(effect1);
this.getSpellAbility().addTarget(new TargetPlayer()); this.getSpellAbility().addTarget(new TargetPlayer());
this.getSpellAbility().addEffect(new ExileCardYouChooseTargetOpponentEffect(StaticFilters.FILTER_CARD_NON_LAND));
// Put a +1/+1 counter on target creature you control. // Put a +1/+1 counter on target creature you control.
TargetCreaturePermanent targetCreature = new TargetCreaturePermanent(); this.getSpellAbility().addEffect(new AddCountersTargetEffect(
this.getSpellAbility().addTarget(targetCreature); CounterType.P1P1.createInstance()
this.getSpellAbility().addEffect(new AddCountersTargetEffect(CounterType.P1P1.createInstance(1), Outcome.BoostCreature)); ).setTargetPointer(new SecondTargetPointer()));
this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent(0, 1));
} }
private AggressiveNegotiations(final AggressiveNegotiations card) { private AggressiveNegotiations(final AggressiveNegotiations card) {