Unofficial cultures and races are treated separately.

This commit is contained in:
marcins78
2013-01-21 15:08:02 +00:00
parent a0a550f0e1
commit 07c4d1420a
3 changed files with 16 additions and 3 deletions

View File

@@ -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(),

View File

@@ -14,6 +14,7 @@ public enum Culture implements Filterable {
private Culture(String humanReadable, boolean official) {
_humanReadable = humanReadable;
_official = official;
}
public boolean isOfficial() {

View File

@@ -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;
}