- outcome fixes for AI

This commit is contained in:
Jeff Wadsworth 2021-11-16 08:41:53 -06:00
parent 9ca9bfa122
commit b38f302dba
2 changed files with 19 additions and 17 deletions

View file

@ -1,4 +1,3 @@
package mage.cards.s;
import java.util.UUID;
@ -19,16 +18,17 @@ import mage.target.common.TargetCreaturePermanent;
public final class SavageSurge extends CardImpl {
public SavageSurge(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{1}{G}");
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{G}");
// Target creature gets +2/+2 until end of turn. Untap that creature.
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
this.getSpellAbility().addEffect(new BoostTargetEffect(2, 2, Duration.EndOfTurn));
Effect effect = new UntapTargetEffect();
effect.setOutcome(Outcome.Benefit);
effect.setText("Untap that creature");
this.getSpellAbility().addEffect(effect);
Effect boostEffect = new BoostTargetEffect(2, 2, Duration.EndOfTurn);
boostEffect.setOutcome(Outcome.Benefit);
this.getSpellAbility().addEffect(boostEffect);
Effect untapEffect = new UntapTargetEffect();
untapEffect.setOutcome(Outcome.Benefit);
untapEffect.setText("Untap that creature");
this.getSpellAbility().addEffect(untapEffect);
}
private SavageSurge(final SavageSurge card) {

View file

@ -1,13 +1,13 @@
package mage.cards.t;
import java.util.UUID;
import mage.abilities.effects.Effect;
import mage.abilities.effects.common.continuous.BoostTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.Outcome;
import mage.target.common.TargetCreaturePermanent;
/**
@ -16,9 +16,11 @@ import mage.target.common.TargetCreaturePermanent;
public final class TitanicGrowth extends CardImpl {
public TitanicGrowth(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{1}{G}");
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{G}");
this.getSpellAbility().addEffect(new BoostTargetEffect(4, 4, Duration.EndOfTurn));
Effect boostEffect = new BoostTargetEffect(4, 4, Duration.EndOfTurn);
boostEffect.setOutcome(Outcome.Benefit);
this.getSpellAbility().addEffect(boostEffect);
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
}