From 1fa084fad0d97f46e384c5324a496505d9a622c2 Mon Sep 17 00:00:00 2001 From: magenoxx Date: Thu, 26 May 2011 00:51:40 +0400 Subject: [PATCH] Fixed not correct used removeFromTop(game). --- Mage.Sets/src/mage/sets/scarsofmirrodin/Grindclock.java | 7 ++++--- Mage.Sets/src/mage/sets/tenth/Traumatize.java | 8 +++++--- .../src/mage/sets/worldwake/JaceTheMindSculptor.java | 7 ++++--- .../effects/common/PutLibraryIntoGraveTargetEffect.java | 3 ++- 4 files changed, 15 insertions(+), 10 deletions(-) diff --git a/Mage.Sets/src/mage/sets/scarsofmirrodin/Grindclock.java b/Mage.Sets/src/mage/sets/scarsofmirrodin/Grindclock.java index 7b4ed55eb9..ec81338189 100644 --- a/Mage.Sets/src/mage/sets/scarsofmirrodin/Grindclock.java +++ b/Mage.Sets/src/mage/sets/scarsofmirrodin/Grindclock.java @@ -88,10 +88,11 @@ class GrindclockEffect extends OneShotEffect { Card card; for (int i = 0; i < amount; i++) { card = player.getLibrary().removeFromTop(game); - if (card != null) - player.getGraveyard().add(card); - else + if (card != null) { + card.moveToZone(Zone.GRAVEYARD, source.getId(), game, false); + } else { break; + } } return true; } diff --git a/Mage.Sets/src/mage/sets/tenth/Traumatize.java b/Mage.Sets/src/mage/sets/tenth/Traumatize.java index 0f3d79853c..a1012b5e04 100644 --- a/Mage.Sets/src/mage/sets/tenth/Traumatize.java +++ b/Mage.Sets/src/mage/sets/tenth/Traumatize.java @@ -32,6 +32,7 @@ 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.effects.OneShotEffect; import mage.cards.Card; @@ -86,10 +87,11 @@ class TraumatizeEffect extends OneShotEffect { int amount = player.getLibrary().size() / 2; for (int i = 0; i < amount; i++) { card = player.getLibrary().removeFromTop(game); - if (card != null) - player.getGraveyard().add(card); - else + if (card != null) { + card.moveToZone(Zone.GRAVEYARD, source.getId(), game, false); + } else { break; + } } return true; } diff --git a/Mage.Sets/src/mage/sets/worldwake/JaceTheMindSculptor.java b/Mage.Sets/src/mage/sets/worldwake/JaceTheMindSculptor.java index 6dd27972b9..f7925e199e 100644 --- a/Mage.Sets/src/mage/sets/worldwake/JaceTheMindSculptor.java +++ b/Mage.Sets/src/mage/sets/worldwake/JaceTheMindSculptor.java @@ -212,10 +212,11 @@ class JaceTheMindSculptorEffect3 extends OneShotEffect