"Midgewater Marshes"

This commit is contained in:
marcins78@gmail.com
2011-08-31 22:28:20 +00:00
parent 36b009f22b
commit c16580fc1b
2 changed files with 46 additions and 1 deletions

View File

@@ -0,0 +1,45 @@
package com.gempukku.lotro.cards.set1.site;
import com.gempukku.lotro.cards.AbstractSite;
import com.gempukku.lotro.cards.effects.ExertCharacterEffect;
import com.gempukku.lotro.common.CardType;
import com.gempukku.lotro.common.Keyword;
import com.gempukku.lotro.filters.Filters;
import com.gempukku.lotro.game.PhysicalCard;
import com.gempukku.lotro.game.state.LotroGame;
import com.gempukku.lotro.logic.actions.CostToEffectAction;
import com.gempukku.lotro.logic.timing.Action;
import com.gempukku.lotro.logic.timing.EffectResult;
import java.util.LinkedList;
import java.util.List;
/**
* Set: The Fellowship of the Ring
* Twilight Cost: 1
* Type: Site
* Site: 2
* Game Text: Marsh. Each time a Hobbit moves to Midgewater Marshes, that Hobbit must exert.
*/
public class Card1_332 extends AbstractSite {
public Card1_332() {
super("Midgewater Marshes", "1_332", 2, 1, Direction.LEFT);
addKeyword(Keyword.MARSH);
}
@Override
public List<? extends Action> getRequiredWhenActions(LotroGame game, EffectResult effectResult, PhysicalCard self) {
if (effectResult.getType() == EffectResult.Type.WHEN_MOVE_TO
&& game.getGameState().getCurrentSite() == self) {
List<Action> actions = new LinkedList<Action>();
List<PhysicalCard> hobbits = Filters.filterActive(game.getGameState(), game.getModifiersQuerying(), Filters.keyword(Keyword.HOBBIT), Filters.type(CardType.COMPANION));
for (PhysicalCard hobbit : hobbits) {
CostToEffectAction action = new CostToEffectAction(self, null, "Each Hobbit must exert");
action.addEffect(new ExertCharacterEffect(hobbit));
actions.add(action);
}
return actions;
}
return null;
}
}

View File

@@ -14,7 +14,7 @@ public enum Keyword {
WEATHER("Weather"), TALE("Tale"), SPELL("Spell"), SEARCH("Search"), STEALTH("Stealth"),
RIVER("River"), PLAINS("Plains"), UNDERGROUND("Underground"), SANCTUARY("Sanctuary"), FOREST("Forest"),
RIVER("River"), PLAINS("Plains"), UNDERGROUND("Underground"), SANCTUARY("Sanctuary"), FOREST("Forest"), MARSH("Marsh"),
DAMAGE("Damage"), DEFENDER("Defender"), FIERCE("Fierce"), ARCHER("Archer"), RANGER("Ranger"),