- Fix for a crash with Lobotomy.

This commit is contained in:
jendave
2011-08-06 04:45:47 +00:00
parent f310d397b6
commit 5886953c52

View File

@@ -16644,11 +16644,16 @@ public class CardFactory implements NewConstants {
CardList grvList = new CardList(grave.getCards());
CardList fullHand = new CardList(hand.getCards());
Card[] handChoices = removeLand(hand.getCards());
if(fullHand.size() > 0 && card.getController().equals(Constant.Player.Human)) AllZone.Display.getChoice(
"Revealing hand", fullHand.toArray());
if (handChoices.length == 0)
return;
if(card.getController().equals(Constant.Player.Human)) {
choice = AllZone.Display.getChoice("Choose", handChoices);
} else//computer chooses
} else //computer chooses
{
choice = CardUtil.getRandom(handChoices);
}