enforce targeting for The Unspeakable ability.

This commit is contained in:
jendave
2011-08-06 14:44:07 +00:00
parent 8041169715
commit ea084481f4

View File

@@ -6082,7 +6082,7 @@ public class GameActionUtil {
@Override @Override
public void resolve() { public void resolve() {
Card target = getTargetCard(); Card target = getTargetCard();
if (AllZone.GameAction.isCardInZone(target, grave)) { if (AllZone.GameAction.isCardInZone(target, grave) && CardFactoryUtil.canTarget(source, target)) {
AllZone.GameAction.moveToHand(target); AllZone.GameAction.moveToHand(target);
} }
}//resolve() }//resolve()
@@ -6091,6 +6091,7 @@ public class GameActionUtil {
CardList choices = new CardList(grave.getCards()); CardList choices = new CardList(grave.getCards());
choices = choices.getValidCards(valid, player, source); choices = choices.getValidCards(valid, player, source);
choices = choices.filter(AllZoneUtil.getCanTargetFilter(source));
if( choices.isEmpty() ) return; if( choices.isEmpty() ) return;