- AI outcome fix for Oracle's Insight

This commit is contained in:
Jeff Wadsworth 2022-01-12 15:06:48 -06:00
parent 26e12b55c8
commit e25f08c9c1

View file

@ -1,4 +1,3 @@
package mage.cards.o;
import java.util.UUID;
@ -30,14 +29,13 @@ import mage.target.common.TargetCreaturePermanent;
public final class OraclesInsight extends CardImpl {
public OraclesInsight(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{3}{U}");
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{3}{U}");
this.subtype.add(SubType.AURA);
// Enchant creature
TargetPermanent auraTarget = new TargetCreaturePermanent();
this.getSpellAbility().addTarget(auraTarget);
this.getSpellAbility().addEffect(new AttachEffect(Outcome.AddAbility));
this.getSpellAbility().addEffect(new AttachEffect(Outcome.Benefit));
Ability ability = new EnchantAbility(auraTarget.getTargetName());
this.addAbility(ability);
// Enchanted creature has "{T}: Scry 1, then draw a card."