"Clan of the Hills"
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
package com.gempukku.lotro.cards.set20.dunland;
|
||||
|
||||
import com.gempukku.lotro.cards.AbstractMinion;
|
||||
import com.gempukku.lotro.cards.PlayConditions;
|
||||
import com.gempukku.lotro.cards.TriggerConditions;
|
||||
import com.gempukku.lotro.cards.effects.StackCardFromPlayEffect;
|
||||
import com.gempukku.lotro.cards.modifiers.ShouldSkipPhaseModifier;
|
||||
import com.gempukku.lotro.cards.modifiers.conditions.LocationCondition;
|
||||
import com.gempukku.lotro.common.Culture;
|
||||
import com.gempukku.lotro.common.Phase;
|
||||
import com.gempukku.lotro.common.Race;
|
||||
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.ActivateCardAction;
|
||||
import com.gempukku.lotro.logic.effects.ChooseActiveCardEffect;
|
||||
import com.gempukku.lotro.logic.effects.ChooseAndWoundCharactersEffect;
|
||||
import com.gempukku.lotro.logic.modifiers.Modifier;
|
||||
import com.gempukku.lotro.logic.timing.EffectResult;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 6
|
||||
* • Clan of the Hills
|
||||
* Dunland Minion • Man
|
||||
* 14 2 3
|
||||
* While Clan of the Hills is in region 2, skip the archery phase.
|
||||
* Response: If Clan of the Hills wins a skirmish, stack a [Dunland] Man on a site you control to wound
|
||||
* an unbound companion.
|
||||
*/
|
||||
public class Card20_014 extends AbstractMinion {
|
||||
public Card20_014() {
|
||||
super(6, 14, 2, 3, Race.MAN, Culture.DUNLAND, "Clan of the Hills", null, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<? extends Modifier> getAlwaysOnModifiers(LotroGame game, PhysicalCard self) {
|
||||
List<Modifier> modifiers = new LinkedList<Modifier>();
|
||||
modifiers.add(
|
||||
new ShouldSkipPhaseModifier(self, new LocationCondition(Filters.region(2)), Phase.ARCHERY));
|
||||
return modifiers;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<? extends ActivateCardAction> getOptionalInPlayAfterActions(final String playerId, LotroGame game, EffectResult effectResult, final PhysicalCard self) {
|
||||
if (TriggerConditions.winsSkirmish(game, effectResult, self)
|
||||
&& PlayConditions.canSpot(game, Culture.DUNLAND, Race.MAN)
|
||||
&& PlayConditions.canSpot(game, Filters.siteControlled(playerId))) {
|
||||
final ActivateCardAction action = new ActivateCardAction(self);
|
||||
action.appendCost(
|
||||
new ChooseActiveCardEffect(self, playerId, "Choose a minion to stack", Culture.DUNLAND, Race.MAN) {
|
||||
@Override
|
||||
protected void cardSelected(LotroGame game, final PhysicalCard minion) {
|
||||
action.appendCost(
|
||||
new ChooseActiveCardEffect(self, playerId, "Choose site you control", Filters.siteControlled(playerId)) {
|
||||
@Override
|
||||
protected void cardSelected(LotroGame game, PhysicalCard site) {
|
||||
action.appendCost(
|
||||
new StackCardFromPlayEffect(minion, site));
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
action.appendEffect(
|
||||
new ChooseAndWoundCharactersEffect(action, playerId, 1, 1, Filters.unboundCompanion));
|
||||
return Collections.singletonList(action);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user