"Armored Mumak"

This commit is contained in:
marcins78
2013-01-07 17:17:57 +00:00
parent 4b73b9038c
commit 4aed45a7f1
5 changed files with 49 additions and 4 deletions

View File

@@ -69,7 +69,8 @@ public class Card12_054 extends AbstractMinion {
final Set<String> possibleCultures = new LinkedHashSet<String>();
for (Culture culture : Culture.values())
possibleCultures.add(culture.getHumanReadable());
if (culture.isOfficial())
possibleCultures.add(culture.getHumanReadable());
action.appendEffect(
new PlayoutDecisionEffect(self.getOwner(),

View File

@@ -0,0 +1,33 @@
package com.gempukku.lotro.cards.set20.fallenRealms;
import com.gempukku.lotro.cards.AbstractAttachable;
import com.gempukku.lotro.cards.modifiers.CantTakeMoreThanXWoundsModifier;
import com.gempukku.lotro.common.*;
import com.gempukku.lotro.filters.Filters;
import com.gempukku.lotro.game.PhysicalCard;
import com.gempukku.lotro.game.state.LotroGame;
import com.gempukku.lotro.logic.modifiers.Modifier;
/**
* 2
* Armored Mumak
* Fallen Realms Possession • Mount
* 2 1
* Bearer must be a Southron.
* Bearer may not take more than one wound in each skirmish.
*/
public class Card20_107 extends AbstractAttachable {
public Card20_107() {
super(Side.SHADOW, CardType.POSSESSION, 2, Culture.FALLEN_REALMS, PossessionClass.MOUNT, "Armored Mumak");
}
@Override
protected Filterable getValidTargetFilter(String playerId, LotroGame game, PhysicalCard self) {
return Keyword.SOUTHRON;
}
@Override
public Modifier getAlwaysOnModifier(PhysicalCard self) {
return new CantTakeMoreThanXWoundsModifier(self, Phase.SKIRMISH, 1, Filters.hasAttached(self));
}
}

View File

@@ -49,7 +49,8 @@ public class Card6_101 extends AbstractMinion {
new SelfExertEffect(action, self));
final Set<String> possibleCultures = new LinkedHashSet<String>();
for (Culture culture : Culture.values())
possibleCultures.add(culture.getHumanReadable());
if (culture.isOfficial())
possibleCultures.add(culture.getHumanReadable());
action.appendEffect(
new PlayoutDecisionEffect(game.getGameState().getCurrentPlayerId(),

View File

@@ -2,14 +2,24 @@ package com.gempukku.lotro.common;
public enum Culture implements Filterable {
DWARVEN("Dwarven"), ELVEN("Elven"), GANDALF("Gandalf"), GOLLUM("Gollum"), GONDOR("Gondor"), ROHAN("Rohan"), SHIRE("Shire"),
DUNLAND("Dunland"), ISENGARD("Isengard"), MEN("Men"), MORIA("Moria"), ORC("Orc"), RAIDER("Raider"), SAURON("Sauron"), URUK_HAI("Uruk-hai"), WRAITH("Wraith");
DUNLAND("Dunland"), ISENGARD("Isengard"), MEN("Men"), MORIA("Moria"), ORC("Orc"), RAIDER("Raider"), SAURON("Sauron"), URUK_HAI("Uruk-hai"), WRAITH("Wraith"),
FALLEN_REALMS("Fallen Realms", false);
private String _humanReadable;
private boolean _official;
private Culture(String humanReadable) {
this(humanReadable, true);
}
private Culture(String humanReadable, boolean official) {
_humanReadable = humanReadable;
}
public boolean isOfficial() {
return _official;
}
public String getHumanReadable() {
return _humanReadable;
}

View File

@@ -11,7 +11,7 @@ import java.util.Set;
public class LotroCardBlueprintLibrary {
private String[] _packageNames =
new String[]{
"", ".dwarven", ".dunland", ".elven", ".gandalf", ".gollum", ".gondor", ".isengard", ".men", ".orc",
"", ".dwarven", ".dunland", ".elven", ".fallenRealms", ".gandalf", ".gollum", ".gondor", ".isengard", ".men", ".orc",
".raider", ".rohan", ".moria", ".wraith", ".sauron", ".shire", ".site", ".uruk_hai"
};
private Map<String, LotroCardBlueprint> _blueprintMap = new HashMap<String, LotroCardBlueprint>();