convert Glasses of Urza to AF.

This commit is contained in:
jendave
2011-08-06 22:40:28 +00:00
parent 4aae876a71
commit c416ac6f53
2 changed files with 2 additions and 33 deletions

View File

@@ -2,6 +2,7 @@ Name:Glasses of Urza
ManaCost:1
Types:Artifact
Text:no text
A:AB$RevealHand | Cost$ T | ValidTgts$ Player | TgtPrompt$ Select target player | SpellDescription$ Look at target player's hand.
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/glasses_of_urza.jpg

View File

@@ -2365,38 +2365,6 @@ public class CardFactory implements NewConstants {
}//*************** END ************ END **************************
//*************** START *********** START **************************
else if(cardName.equals("Glasses of Urza")) {
Target target = new Target(card,"Select target player", new String[] {"Player"});
Cost abCost = new Cost("T", cardName, true);
final Ability_Activated ability = new Ability_Activated(card, abCost, target) {
private static final long serialVersionUID = -3857979945891501990L;
@Override
public void resolve() {
final Player player = getTargetPlayer();
CardList hand = AllZoneUtil.getPlayerHand(player);
if (hand.size() > 0) {
GuiUtils.getChoice("Target player's hand", hand.toArray());
} else {
StringBuilder sb = new StringBuilder();
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() {
return false;
}
};//SpellAbility
ability.setDescription(abCost+"Look at target player's hand.");
card.addSpellAbility(ability);
}//*************** END ************ END **************************
//*************** START *********** START **************************
else if(cardName.equals("Everflowing Chalice")) {
final Command comesIntoPlay = new Command() {