mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
fix
This commit is contained in:
parent
5c62ea27bf
commit
824f53f019
1 changed files with 4 additions and 6 deletions
|
@ -60,15 +60,13 @@ public class ReturnToHandSourceEffect extends OneShotEffect<ReturnToHandSourceEf
|
|||
if (card != null) {
|
||||
switch (game.getZone(card.getId())) {
|
||||
case BATTLEFIELD:
|
||||
if (card != null) {
|
||||
return card.moveToZone(Zone.HAND, source.getId(), game, false);
|
||||
Permanent p = game.getPermanent(source.getSourceId());
|
||||
if (p != null) {
|
||||
return p.moveToZone(Zone.HAND, source.getId(), game, false);
|
||||
}
|
||||
break;
|
||||
case GRAVEYARD:
|
||||
if (card != null) {
|
||||
return card.moveToZone(Zone.HAND, source.getId(), game, true);
|
||||
}
|
||||
break;
|
||||
return card.moveToZone(Zone.HAND, source.getId(), game, true);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue