* extirpate - Fixed bug of moving cards to exile. Now all cards are shown in the exile window (fixes #411).

This commit is contained in:
LevelX2 2014-04-14 17:22:55 +02:00
parent 56056170e0
commit 1add018e8d

View file

@ -125,7 +125,7 @@ class ExtirpateEffect extends OneShotEffect<ExtirpateEffect> {
for (UUID targetId : targets) { for (UUID targetId : targets) {
Card targetCard = targetPlayer.getGraveyard().get(targetId, game); Card targetCard = targetPlayer.getGraveyard().get(targetId, game);
if (targetCard != null) { if (targetCard != null) {
player.moveCardToExileWithInfo(card, null, null, source.getSourceId(), game, Zone.GRAVEYARD); player.moveCardToExileWithInfo(targetCard, null, null, source.getSourceId(), game, Zone.GRAVEYARD);
} }
} }
} }
@ -141,7 +141,7 @@ class ExtirpateEffect extends OneShotEffect<ExtirpateEffect> {
for (UUID targetId : targets) { for (UUID targetId : targets) {
Card targetCard = targetPlayer.getHand().get(targetId, game); Card targetCard = targetPlayer.getHand().get(targetId, game);
if (targetCard != null) { if (targetCard != null) {
player.moveCardToExileWithInfo(card, null, null, source.getSourceId(), game, Zone.HAND); player.moveCardToExileWithInfo(targetCard, null, null, source.getSourceId(), game, Zone.HAND);
} }
} }
} }
@ -159,7 +159,7 @@ class ExtirpateEffect extends OneShotEffect<ExtirpateEffect> {
for (UUID targetId : targets) { for (UUID targetId : targets) {
Card targetCard = targetPlayer.getLibrary().remove(targetId, game); Card targetCard = targetPlayer.getLibrary().remove(targetId, game);
if (targetCard != null) { if (targetCard != null) {
player.moveCardToExileWithInfo(card, null, null, source.getSourceId(), game, Zone.LIBRARY); player.moveCardToExileWithInfo(targetCard, null, null, source.getSourceId(), game, Zone.LIBRARY);
} }
} }
} }