mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- 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:
@@ -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++) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user