Unofficial cultures and races are treated separately.
This commit is contained in:
@@ -64,8 +64,10 @@ public class Card19_038 extends AbstractMinion {
|
||||
RequiredTriggerAction action = new RequiredTriggerAction(self);
|
||||
|
||||
final Set<String> possibleRaces = new LinkedHashSet<String>();
|
||||
for (Race race : Race.values())
|
||||
possibleRaces.add(race.getHumanReadable());
|
||||
for (Race race : Race.values()) {
|
||||
if (race.isOfficial())
|
||||
possibleRaces.add(race.getHumanReadable());
|
||||
}
|
||||
|
||||
action.appendEffect(
|
||||
new PlayoutDecisionEffect(self.getOwner(),
|
||||
|
||||
@@ -14,6 +14,7 @@ public enum Culture implements Filterable {
|
||||
|
||||
private Culture(String humanReadable, boolean official) {
|
||||
_humanReadable = humanReadable;
|
||||
_official = official;
|
||||
}
|
||||
|
||||
public boolean isOfficial() {
|
||||
|
||||
@@ -4,14 +4,24 @@ public enum Race implements Filterable {
|
||||
BALROG("Balrog"), CREATURE("Creature"), WRAITH("Wraith"),
|
||||
ELF("Elf"), HOBBIT("Hobbit"), DWARF("Dwarf"), MAN("Man"), WIZARD("Wizard"), TREE("Tree"),
|
||||
URUK_HAI("Uruk-Hai"), NAZGUL("Nazgul"), ORC("Orc"), TROLL("Troll"), HALF_TROLL("Half-troll"), ENT("Ent"), SPIDER("Spider"), MAIA("Maia"),
|
||||
GOBLIN("Goblin");
|
||||
GOBLIN("Goblin", false);
|
||||
|
||||
private String _humanReadable;
|
||||
private boolean _official;
|
||||
|
||||
private Race(String humanReadable) {
|
||||
_humanReadable = humanReadable;
|
||||
}
|
||||
|
||||
private Race(String humanReadable, boolean official) {
|
||||
_humanReadable = humanReadable;
|
||||
_official = official;
|
||||
}
|
||||
|
||||
public boolean isOfficial() {
|
||||
return _official;
|
||||
}
|
||||
|
||||
public String getHumanReadable() {
|
||||
return _humanReadable;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user