mirror of
https://github.com/correl/mage.git
synced 2024-11-16 03:00:12 +00:00
* extirpate - Fixed bug of moving cards to exile. Now all cards are shown in the exile window (fixes #411).
This commit is contained in:
parent
56056170e0
commit
1add018e8d
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue