- Fixed the Glasses of Urza bug which occurs when trying to display the cards when the target player's hand is empty.

This commit is contained in:
jendave
2011-08-06 05:56:13 +00:00
parent b945c24d67
commit 24e133392d

View File

@@ -21447,8 +21447,14 @@ public class CardFactory implements NewConstants {
public void resolve() {
final String player = getTargetPlayer();
CardList hand = AllZoneUtil.getPlayerHand(player);
if (hand.size() > 0) {
AllZone.Display.getChoice("Target player's hand", hand.toArray());
} else {
StringBuffer sb = new StringBuffer();
sb.append(getTargetPlayer()).append("'s hand is empty!");
javax.swing.JOptionPane.showMessageDialog(null, sb.toString(), "Target player's hand", JOptionPane.INFORMATION_MESSAGE);
}
}//resolve()
@Override
public boolean canPlayAI() {