- Added "reveal" for Sylvan Messenger and Goblin Ringleader when the AI casts one.

This commit is contained in:
jendave
2011-08-06 05:58:26 +00:00
parent 53fedabd63
commit 7c333015c0

View File

@@ -2801,6 +2801,18 @@ public class CardFactory_Creatures {
for(int i = 0; i < goblin.size(); i++)
AllZone.GameAction.moveTo(hand, goblin.get(i));
if (card.getController().equals(Constant.Player.Computer))
{
StringBuilder sb = new StringBuilder();
sb.append("<html><b>");
for (Card c:top) {
sb.append(c.getName());
sb.append("<br>");
}
sb.append("</b></html>");
JOptionPane.showMessageDialog(null, sb.toString(), "Computer reveals:", JOptionPane.INFORMATION_MESSAGE);
}
}//resolve()
};//SpellAbility
Command intoPlay = new Command() {
@@ -2882,10 +2894,22 @@ public class CardFactory_Creatures {
libraryZone.add(top.get(i));
}
CardList goblin = top.getType("Elf");
CardList elf = top.getType("Elf");
for(int i = 0; i < goblin.size(); i++)
AllZone.GameAction.moveTo(hand, goblin.get(i));
for(int i = 0; i < elf.size(); i++)
AllZone.GameAction.moveTo(hand, elf.get(i));
if (card.getController().equals(Constant.Player.Computer))
{
StringBuilder sb = new StringBuilder();
sb.append("<html><b>");
for (Card c:top) {
sb.append(c.getName());
sb.append("<br>");
}
sb.append("</b></html>");
JOptionPane.showMessageDialog(null, sb.toString(), "Computer reveals:", JOptionPane.INFORMATION_MESSAGE);
}
}//resolve()
};//SpellAbility
Command intoPlay = new Command() {