"White Hand Attacker"

This commit is contained in:
marcins78@gmail.com
2012-02-22 17:45:49 +00:00
parent d2992c871d
commit 6e724f53cb
2 changed files with 58 additions and 2 deletions

View File

@@ -0,0 +1,45 @@
package com.gempukku.lotro.cards.set17.uruk_hai;
import com.gempukku.lotro.cards.AbstractMinion;
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.KeywordModifier;
import com.gempukku.lotro.logic.modifiers.Modifier;
import com.gempukku.lotro.logic.modifiers.SpotCondition;
import java.util.LinkedList;
import java.util.List;
/**
* Set: Rise of Saruman
* Side: Shadow
* Culture: Uruk-hai
* Twilight Cost: 3
* Type: Minion • Uruk-Hai
* Strength: 8
* Vitality: 2
* Site: 5
* Game Text: Damage +1. While this minion is assigned to a skirmish, each site on the adventure path gains each terrain
* keyword from each site you control.
*/
public class Card17_120 extends AbstractMinion {
public Card17_120() {
super(3, 8, 2, 5, Race.URUK_HAI, Culture.URUK_HAI, "White Hand Attacker");
addKeyword(Keyword.DAMAGE, 1);
}
@Override
public List<? extends Modifier> getAlwaysOnModifiers(LotroGame game, PhysicalCard self) {
List<Modifier> modifiers = new LinkedList<Modifier>();
for (Keyword keyword : Keyword.values()) {
if (keyword.isTerrain())
modifiers.add(
new KeywordModifier(self, Filters.and(CardType.SITE, Zone.ADVENTURE_PATH),
new SpotCondition(Filters.siteControlled(self.getOwner()), keyword), keyword, 1));
}
return modifiers;
}
}

View File

@@ -13,8 +13,9 @@ public enum Keyword implements Filterable {
WEATHER("Weather", true), TALE("Tale", true), SPELL("Spell", true), SEARCH("Search", true), STEALTH("Stealth", true), TENTACLE("Tentacle", true),
RIVER("River", true), PLAINS("Plains", true), UNDERGROUND("Underground", true), SANCTUARY("Sanctuary", true), FOREST("Forest", true), MARSH("Marsh", true), MOUNTAIN("Mountain", true),
BATTLEGROUND("Battleground", true), DWELLING("Dwelling", true),
RIVER("River", true, false, true), PLAINS("Plains", true, false, true), UNDERGROUND("Underground", true, false, true),
SANCTUARY("Sanctuary", true, false, true), FOREST("Forest", true, false, true), MARSH("Marsh", true, false, true),
MOUNTAIN("Mountain", true, false, true), BATTLEGROUND("Battleground", true, false, true), DWELLING("Dwelling", true, false, true),
PIPEWEED("Pipeweed"),
@@ -28,6 +29,7 @@ public enum Keyword implements Filterable {
private String _humanReadable;
private boolean _infoDisplayable;
private boolean _multiples;
private boolean _terrain;
private Keyword(String humanReadable) {
this(humanReadable, false);
@@ -38,9 +40,14 @@ public enum Keyword implements Filterable {
}
private Keyword(String humanReadable, boolean infoDisplayable, boolean multiples) {
this(humanReadable, infoDisplayable, multiples, false);
}
private Keyword(String humanReadable, boolean infoDisplayable, boolean multiples, boolean terrain) {
_humanReadable = humanReadable;
_infoDisplayable = infoDisplayable;
_multiples = multiples;
_terrain = terrain;
}
public String getHumanReadable() {
@@ -54,4 +61,8 @@ public enum Keyword implements Filterable {
public boolean isMultiples() {
return _multiples;
}
public boolean isTerrain() {
return _terrain;
}
}