- Devour is now optional.

- Nissa Revane's third ability now allows the player to specify which elves to grab (as opposed to dumping all creatures onto the battlefield).
This commit is contained in:
jendave
2011-08-06 03:42:49 +00:00
parent d556963e7d
commit a7c6d59f27
2 changed files with 23 additions and 8 deletions

View File

@@ -2482,7 +2482,7 @@ public class CardFactory implements NewConstants {
if(card.getController().equals(Constant.Player.Human)) {
if (creats.size() > 0)
{
List<Card> selection = AllZone.Display.getChoices("Select creatures to sacrifice", creats.toArray());
List<Card> selection = AllZone.Display.getChoicesOptional("Select creatures to sacrifice", creats.toArray());
numCreatures[0] = selection.size();
for(int m = 0; m < selection.size(); m++) {

View File

@@ -3,6 +3,7 @@ package forge;
import java.util.HashMap;
import java.util.List;
class CardFactory_Planeswalkers {
@@ -329,14 +330,28 @@ class CardFactory_Planeswalkers {
list.addAll(library.getCards());
list = list.getType("Elf");
//currently, just adds all elves into play.
for(int i = 0; i < list.size(); i++) {
Card c = list.get(i);
if(c.isCreature()) {
library.remove(c);
play.add(c);
}
if (card.getController().equals(Constant.Player.Human))
{
List<Card> selection = AllZone.Display.getChoicesOptional("Select Elves to put into play", list.toArray());
int numElves = selection.size();
for(int m = 0; m < numElves; m++) {
Card c = selection.get(m);
library.remove(c);
play.add(c);
}
}
else //computer
{
for(int i = 0; i < list.size(); i++) {
Card c = list.get(i);
if(c.isCreature()) {
library.remove(c);
play.add(c);
}
}
}
}
@Override