* Jace, the Mind Sculptor - Added log info messages about cards moved between zones.

This commit is contained in:
LevelX2 2014-05-29 12:54:30 +02:00
parent 5c1ffb5942
commit 4cc454ba16

View file

@ -29,11 +29,6 @@
package mage.sets.worldwake; package mage.sets.worldwake;
import java.util.UUID; import java.util.UUID;
import mage.constants.CardType;
import mage.constants.Outcome;
import mage.constants.Rarity;
import mage.constants.Zone;
import mage.abilities.Ability; import mage.abilities.Ability;
import mage.abilities.LoyaltyAbility; import mage.abilities.LoyaltyAbility;
import mage.abilities.common.EntersBattlefieldAbility; import mage.abilities.common.EntersBattlefieldAbility;
@ -44,6 +39,10 @@ import mage.cards.Card;
import mage.cards.CardImpl; import mage.cards.CardImpl;
import mage.cards.Cards; import mage.cards.Cards;
import mage.cards.CardsImpl; import mage.cards.CardsImpl;
import mage.constants.CardType;
import mage.constants.Outcome;
import mage.constants.Rarity;
import mage.constants.Zone;
import mage.counters.CounterType; import mage.counters.CounterType;
import mage.game.ExileZone; import mage.game.ExileZone;
import mage.game.Game; import mage.game.Game;
@ -123,7 +122,7 @@ class JaceTheMindSculptorEffect1 extends OneShotEffect<JaceTheMindSculptorEffect
if (controller.chooseUse(outcome, "Do you wish to put card on the bottom of player's library?", game)) { if (controller.chooseUse(outcome, "Do you wish to put card on the bottom of player's library?", game)) {
Card card = player.getLibrary().removeFromTop(game); Card card = player.getLibrary().removeFromTop(game);
if (card != null) { if (card != null) {
card.moveToZone(Zone.LIBRARY, source.getId(), game, false); controller.moveCardToLibraryWithInfo(card, source.getSourceId(), game, Zone.LIBRARY, false, false);
} }
} }
return true; return true;
@ -169,7 +168,7 @@ class JaceTheMindSculptorEffect2 extends OneShotEffect<JaceTheMindSculptorEffect
Card card = player.getHand().get(target.getFirstTarget(), game); Card card = player.getHand().get(target.getFirstTarget(), game);
if (card != null) { if (card != null) {
player.getHand().remove(card); player.getHand().remove(card);
card.moveToZone(Zone.LIBRARY, source.getId(), game, true); player.moveCardToLibraryWithInfo(card, source.getSourceId(), game, Zone.HAND, true, false);
} }
return true; return true;
} }
@ -198,15 +197,17 @@ class JaceTheMindSculptorEffect3 extends OneShotEffect<JaceTheMindSculptorEffect
ExileZone exile = game.getExile().getPermanentExile(); ExileZone exile = game.getExile().getPermanentExile();
if (player != null) { if (player != null) {
while (true) { while (true) {
if (player.getLibrary().getFromTop(game) == null) if (player.getLibrary().getFromTop(game) == null) {
break; break;
}
Card card = player.getLibrary().removeFromTop(game); Card card = player.getLibrary().removeFromTop(game);
exile.add(card); exile.add(card);
game.setZone(card.getId(), Zone.EXILED); game.setZone(card.getId(), Zone.EXILED);
} }
for (Card card : player.getHand().getCards(game)) { for (Card card : player.getHand().getCards(game)) {
card.moveToZone(Zone.LIBRARY, source.getId(), game, false); card.moveToZone(Zone.LIBRARY, source.getSourceId(), game, false);
} }
player.shuffleLibrary(game);
return true; return true;
} }
return false; return false;