"Westemnet Village"

This commit is contained in:
marcins78@gmail.com
2011-12-07 00:49:13 +00:00
parent 87423ee206
commit 5b182df597

View File

@@ -0,0 +1,42 @@
package com.gempukku.lotro.cards.set11.site;
import com.gempukku.lotro.cards.AbstractNewSite;
import com.gempukku.lotro.cards.TriggerConditions;
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.RequiredTriggerAction;
import com.gempukku.lotro.logic.effects.ChooseAndWoundCharactersEffect;
import com.gempukku.lotro.logic.timing.EffectResult;
import java.util.Collections;
import java.util.List;
/**
* Set: Shadows
* Twilight Cost: 2
* Type: Site
* Game Text: Dwelling. When the fellowship moves to this site, the Free Peoples player wounds a companion
* for each ally.
*/
public class Card11_264 extends AbstractNewSite {
public Card11_264() {
super("Westemnet Village", 2, Direction.LEFT);
addKeyword(Keyword.DWELLING);
}
@Override
public List<RequiredTriggerAction> getRequiredAfterTriggers(LotroGame game, EffectResult effectResult, PhysicalCard self) {
if (TriggerConditions.movesTo(game, effectResult, self)) {
RequiredTriggerAction action = new RequiredTriggerAction(self);
int count = Filters.countActive(game.getGameState(), game.getModifiersQuerying(), CardType.ALLY);
for (int i = 0; i < count; i++)
action.appendEffect(
new ChooseAndWoundCharactersEffect(action, game.getGameState().getCurrentPlayerId(), 1, 1, CardType.COMPANION));
return Collections.singletonList(action);
}
return null;
}
}