mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38: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(card.getController().equals(Constant.Player.Human)) {
|
||||||
if (creats.size() > 0)
|
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();
|
numCreatures[0] = selection.size();
|
||||||
for(int m = 0; m < selection.size(); m++) {
|
for(int m = 0; m < selection.size(); m++) {
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ package forge;
|
|||||||
|
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
class CardFactory_Planeswalkers {
|
class CardFactory_Planeswalkers {
|
||||||
@@ -329,7 +330,19 @@ class CardFactory_Planeswalkers {
|
|||||||
list.addAll(library.getCards());
|
list.addAll(library.getCards());
|
||||||
list = list.getType("Elf");
|
list = list.getType("Elf");
|
||||||
|
|
||||||
//currently, just adds all elves into play.
|
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++) {
|
for(int i = 0; i < list.size(); i++) {
|
||||||
Card c = list.get(i);
|
Card c = list.get(i);
|
||||||
if(c.isCreature()) {
|
if(c.isCreature()) {
|
||||||
@@ -339,6 +352,8 @@ class CardFactory_Planeswalkers {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean canPlay() {
|
public boolean canPlay() {
|
||||||
return 7 <= card2.getCounters(Counters.LOYALTY)
|
return 7 <= card2.getCounters(Counters.LOYALTY)
|
||||||
|
|||||||
Reference in New Issue
Block a user