- Little fix Twilight Shepherd

This commit is contained in:
Jeff 2013-12-07 09:30:43 -06:00
parent aee38cbdc8
commit ed16a20b51

View file

@ -110,7 +110,9 @@ class TwilightShepherdEffect extends OneShotEffect<TwilightShepherdEffect> {
Set<UUID> cardsInGraveyardId = watcher.getCardsPutToGraveyardFromBattlefield(); Set<UUID> cardsInGraveyardId = watcher.getCardsPutToGraveyardFromBattlefield();
for (UUID cardId : cardsInGraveyardId) { for (UUID cardId : cardsInGraveyardId) {
Card card = game.getCard(cardId); Card card = game.getCard(cardId);
if (card != null && card.getOwnerId().equals(source.getControllerId())) { if (card != null
&& card.getOwnerId().equals(source.getControllerId())
&& game.getState().getZone(card.getId()).match(Zone.GRAVEYARD)) {
applied = card.moveToZone(Zone.HAND, source.getSourceId(), game, false); applied = card.moveToZone(Zone.HAND, source.getSourceId(), game, false);
} }
} }