"The Isen"
This commit is contained in:
@@ -0,0 +1,43 @@
|
|||||||
|
package com.gempukku.lotro.cards.set20.site;
|
||||||
|
|
||||||
|
import com.gempukku.lotro.cards.AbstractSite;
|
||||||
|
import com.gempukku.lotro.cards.PlayConditions;
|
||||||
|
import com.gempukku.lotro.cards.TriggerConditions;
|
||||||
|
import com.gempukku.lotro.cards.effects.TakeControlOfASiteEffect;
|
||||||
|
import com.gempukku.lotro.cards.effects.choose.ChooseAndDiscardCardsFromPlayEffect;
|
||||||
|
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.actions.OptionalTriggerAction;
|
||||||
|
import com.gempukku.lotro.logic.timing.EffectResult;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The Isen
|
||||||
|
* 4 3
|
||||||
|
* River.
|
||||||
|
* At the start of the regroup phase, you may discard a [Dunland] man to take control of a site.
|
||||||
|
*/
|
||||||
|
public class Card20_438 extends AbstractSite {
|
||||||
|
public Card20_438() {
|
||||||
|
super("The Isen", Block.SECOND_ED, 4, 3, null);
|
||||||
|
addKeyword(Keyword.RIVER);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<OptionalTriggerAction> getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) {
|
||||||
|
if (TriggerConditions.startOfPhase(game, effectResult, Phase.REGROUP)
|
||||||
|
&& PlayConditions.canDiscardFromPlay(self, game, Filters.owner(playerId), Culture.DUNLAND, Race.MAN)) {
|
||||||
|
OptionalTriggerAction action = new OptionalTriggerAction(self);
|
||||||
|
action.appendCost(
|
||||||
|
new ChooseAndDiscardCardsFromPlayEffect(action, playerId, 1, 1, Filters.owner(playerId), Culture.DUNLAND, Race.MAN));
|
||||||
|
action.appendEffect(
|
||||||
|
new TakeControlOfASiteEffect(self, playerId));
|
||||||
|
return Collections.singletonList(action);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user