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