"Westemnet Hills"

This commit is contained in:
marcins78@gmail.com
2011-10-16 21:10:56 +00:00
parent ef4ecf81ac
commit e301b1bfe0

View File

@@ -0,0 +1,44 @@
package com.gempukku.lotro.cards.set4.site;
import com.gempukku.lotro.cards.AbstractSite;
import com.gempukku.lotro.common.Block;
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.HealCharactersEffect;
import com.gempukku.lotro.logic.timing.EffectResult;
import java.util.Collections;
import java.util.List;
/**
* Set: The Two Towers
* Twilight Cost: 3
* Type: Site
* Site: 4T
* Game Text: Plains. When the fellowship moves to Westemnet Hills, heal each mounted companion and mounted ally.
*/
public class Card4_344 extends AbstractSite {
public Card4_344() {
super("Westemnet Hills", Block.TWO_TOWERS, 4, 3, Direction.RIGHT);
addKeyword(Keyword.PLAINS);
}
@Override
public List<RequiredTriggerAction> getRequiredAfterTriggers(LotroGame game, EffectResult effectResult, PhysicalCard self) {
if (effectResult.getType() == EffectResult.Type.WHEN_MOVE_TO
&& game.getGameState().getCurrentSite() == self) {
RequiredTriggerAction action = new RequiredTriggerAction(self);
action.appendEffect(
new HealCharactersEffect(game.getGameState().getCurrentPlayerId(),
Filters.and(
Filters.or(CardType.COMPANION, CardType.ALLY),
Filters.mounted)));
return Collections.singletonList(action);
}
return null;
}
}