mirror of
https://github.com/correl/mage.git
synced 2025-01-12 11:08:01 +00:00
Fixed not correct used removeFromTop(game).
This commit is contained in:
parent
334bd6b309
commit
1fa084fad0
4 changed files with 15 additions and 10 deletions
|
@ -88,10 +88,11 @@ class GrindclockEffect extends OneShotEffect<GrindclockEffect> {
|
||||||
Card card;
|
Card card;
|
||||||
for (int i = 0; i < amount; i++) {
|
for (int i = 0; i < amount; i++) {
|
||||||
card = player.getLibrary().removeFromTop(game);
|
card = player.getLibrary().removeFromTop(game);
|
||||||
if (card != null)
|
if (card != null) {
|
||||||
player.getGraveyard().add(card);
|
card.moveToZone(Zone.GRAVEYARD, source.getId(), game, false);
|
||||||
else
|
} else {
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,6 +32,7 @@ import java.util.UUID;
|
||||||
import mage.Constants.CardType;
|
import mage.Constants.CardType;
|
||||||
import mage.Constants.Outcome;
|
import mage.Constants.Outcome;
|
||||||
import mage.Constants.Rarity;
|
import mage.Constants.Rarity;
|
||||||
|
import mage.Constants.Zone;
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.effects.OneShotEffect;
|
import mage.abilities.effects.OneShotEffect;
|
||||||
import mage.cards.Card;
|
import mage.cards.Card;
|
||||||
|
@ -86,10 +87,11 @@ class TraumatizeEffect extends OneShotEffect<TraumatizeEffect> {
|
||||||
int amount = player.getLibrary().size() / 2;
|
int amount = player.getLibrary().size() / 2;
|
||||||
for (int i = 0; i < amount; i++) {
|
for (int i = 0; i < amount; i++) {
|
||||||
card = player.getLibrary().removeFromTop(game);
|
card = player.getLibrary().removeFromTop(game);
|
||||||
if (card != null)
|
if (card != null) {
|
||||||
player.getGraveyard().add(card);
|
card.moveToZone(Zone.GRAVEYARD, source.getId(), game, false);
|
||||||
else
|
} else {
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -212,10 +212,11 @@ class JaceTheMindSculptorEffect3 extends OneShotEffect<JaceTheMindSculptorEffect
|
||||||
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);
|
||||||
|
}
|
||||||
|
for (Card card : player.getHand().getCards(game)) {
|
||||||
|
card.moveToZone(Zone.LIBRARY, source.getId(), game, false);
|
||||||
}
|
}
|
||||||
player.getLibrary().addAll(player.getHand().getCards(game), game);
|
|
||||||
player.getLibrary().shuffle();
|
|
||||||
player.getHand().clear();
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
package mage.abilities.effects.common;
|
package mage.abilities.effects.common;
|
||||||
|
|
||||||
import mage.Constants.Outcome;
|
import mage.Constants.Outcome;
|
||||||
|
import mage.Constants.Zone;
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.effects.OneShotEffect;
|
import mage.abilities.effects.OneShotEffect;
|
||||||
import mage.cards.Card;
|
import mage.cards.Card;
|
||||||
|
@ -67,7 +68,7 @@ public class PutLibraryIntoGraveTargetEffect extends OneShotEffect<PutLibraryInt
|
||||||
for (int i = 0; i < cardsCount; i++) {
|
for (int i = 0; i < cardsCount; i++) {
|
||||||
Card card = player.getLibrary().removeFromTop(game);
|
Card card = player.getLibrary().removeFromTop(game);
|
||||||
if (card != null)
|
if (card != null)
|
||||||
player.getGraveyard().add(card);
|
card.moveToZone(Zone.GRAVEYARD, source.getId(), game, false);
|
||||||
else
|
else
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue