mirror of
https://github.com/correl/mage.git
synced 2024-12-26 19:16:54 +00:00
Possible fix for Issue 372.
This commit is contained in:
parent
1b9f75f29b
commit
0c4783e2cd
2 changed files with 7 additions and 3 deletions
|
@ -99,12 +99,12 @@ class GhostQuarterEffect extends OneShotEffect<GhostQuarterEffect> {
|
|||
Permanent permanent = (Permanent) game.getLastKnownInformation(source.getFirstTarget(), Zone.BATTLEFIELD);
|
||||
if (permanent != null) {
|
||||
Player player = game.getPlayer(permanent.getControllerId());
|
||||
if (player.chooseUse(Outcome.PutLandInPlay, "Do you wish to search for a basic land, put it onto the battlefied and then shuffle your library?", game)) {
|
||||
if (player.chooseUse(Outcome.PutLandInPlay, "Do you wish to search for a basic land, put it onto the battlefield and then shuffle your library?", game)) {
|
||||
TargetCardInLibrary target = new TargetCardInLibrary(new FilterBasicLandCard());
|
||||
if (player.searchLibrary(target, game)) {
|
||||
Card card = player.getLibrary().remove(target.getFirstTarget(), game);
|
||||
if (card != null) {
|
||||
card.putOntoBattlefield(game, Zone.HAND, source.getId(), permanent.getControllerId());
|
||||
card.putOntoBattlefield(game, Zone.HAND, source.getId(), player.getId());
|
||||
}
|
||||
}
|
||||
player.shuffleLibrary(game);
|
||||
|
|
|
@ -1169,7 +1169,11 @@ public abstract class GameImpl<T extends GameImpl<T>> implements Game, Serializa
|
|||
/*if (!lki.containsKey(objectId)) {
|
||||
return getCard(objectId);
|
||||
}*/
|
||||
return lki.get(objectId);
|
||||
Card card = lki.get(objectId);
|
||||
if (card != null) {
|
||||
return card.copy();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue