From 13de7b2aa15580e7d476cb8d851faaf775e7c88a Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sat, 23 Feb 2013 17:20:06 +0100 Subject: [PATCH] Fixed a bug that Jace, Architect of Thought's first ability did not trigger for creatures that attacked your allies. --- .../JaceArchitectOfThought.java | 30 ++++++++----------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/Mage.Sets/src/mage/sets/returntoravnica/JaceArchitectOfThought.java b/Mage.Sets/src/mage/sets/returntoravnica/JaceArchitectOfThought.java index 56f9ca44b4e..fab80e80f0d 100644 --- a/Mage.Sets/src/mage/sets/returntoravnica/JaceArchitectOfThought.java +++ b/Mage.Sets/src/mage/sets/returntoravnica/JaceArchitectOfThought.java @@ -31,11 +31,13 @@ import java.util.ArrayList; import java.util.List; import java.util.Set; import java.util.UUID; -import mage.Constants; import mage.Constants.CardType; import mage.Constants.Duration; +import mage.Constants.Layer; import mage.Constants.Outcome; +import mage.Constants.PhaseStep; import mage.Constants.Rarity; +import mage.Constants.SubLayer; import mage.Constants.Zone; import mage.abilities.Ability; import mage.abilities.LoyaltyAbility; @@ -91,7 +93,6 @@ public class JaceArchitectOfThought extends CardImpl { // -8: For each player, search that player's library for a nonland card and exile it, then that player shuffles his or her library. You may cast those cards without paying their mana costs. this.addAbility(new LoyaltyAbility(new JaceArchitectOfThoughtEffect3(), -8)); - } public JaceArchitectOfThought(final JaceArchitectOfThought card) { @@ -109,7 +110,7 @@ class JaceArchitectOfThoughtGainAbilityEffect extends ContinuousEffectImpl { public JaceArchitectOfThoughtTriggeredAbility() { - super(Constants.Zone.BATTLEFIELD, new JaceArchitectOfThoughtEffectUnboostEffect(-1,0, Duration.EndOfTurn)); + super(Zone.BATTLEFIELD, new JaceArchitectOfThoughtEffectUnboostEffect(-1,0, Duration.EndOfTurn)); } public JaceArchitectOfThoughtTriggeredAbility(final JaceArchitectOfThoughtTriggeredAbility ability) { @@ -164,13 +165,9 @@ class JaceArchitectOfThoughtTriggeredAbility extends TriggeredAbilityImpl { public JaceArchitectOfThoughtEffect2() { - super(Constants.Outcome.DrawCard); + super(Outcome.DrawCard); this.staticText = "Reveal the top three cards of your library. An opponent separates those cards into two piles. Put one pile into your hand and the other on the bottom of your library in any order"; } @@ -266,7 +263,7 @@ class JaceArchitectOfThoughtEffect2 extends OneShotEffect targets = target.getTargets(); for (UUID targetId : targets) { Card card = cards.get(targetId, game); @@ -308,7 +305,7 @@ class JaceArchitectOfThoughtEffect2 extends OneShotEffect 1) { - player.choose(Constants.Outcome.Neutral, cardsToLibrary, targetCard, game); + player.choose(Outcome.Neutral, cardsToLibrary, targetCard, game); Card card = cardsToLibrary.get(targetCard.getFirstTarget(), game); if (card != null) { cardsToLibrary.remove(card); @@ -358,7 +355,7 @@ class JaceArchitectOfThoughtEffect3 extends OneShotEffect