"Troll's Keyward"
This commit is contained in:
@@ -0,0 +1,56 @@
|
|||||||
|
package com.gempukku.lotro.cards.set12.orc;
|
||||||
|
|
||||||
|
import com.gempukku.lotro.cards.AbstractMinion;
|
||||||
|
import com.gempukku.lotro.cards.PlayConditions;
|
||||||
|
import com.gempukku.lotro.cards.effects.RevealCardsFromHandEffect;
|
||||||
|
import com.gempukku.lotro.cards.effects.SelfExertEffect;
|
||||||
|
import com.gempukku.lotro.common.Culture;
|
||||||
|
import com.gempukku.lotro.common.Keyword;
|
||||||
|
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.AddTwilightEffect;
|
||||||
|
import com.gempukku.lotro.logic.timing.Action;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set: Black Rider
|
||||||
|
* Side: Shadow
|
||||||
|
* Culture: Orc
|
||||||
|
* Twilight Cost: 3
|
||||||
|
* Type: Minion • Orc
|
||||||
|
* Strength: 8
|
||||||
|
* Vitality: 3
|
||||||
|
* Site: 4
|
||||||
|
* Game Text: Lurker. (Skirmishes involving lurker minions must be resolved after any others.) Shadow: Exert Troll's
|
||||||
|
* Keyward and reveal your hand to add (1) for each [ORC] Troll revealed.
|
||||||
|
*/
|
||||||
|
public class Card12_105 extends AbstractMinion {
|
||||||
|
public Card12_105() {
|
||||||
|
super(3, 8, 3, 4, Race.ORC, Culture.ORC, "Troll's Keyward", true);
|
||||||
|
addKeyword(Keyword.LURKER);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected List<? extends Action> getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
|
||||||
|
if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.SHADOW, self, 0)
|
||||||
|
&& PlayConditions.canSelfExert(self, game)) {
|
||||||
|
ActivateCardAction action = new ActivateCardAction(self);
|
||||||
|
action.appendCost(
|
||||||
|
new SelfExertEffect(self));
|
||||||
|
action.appendCost(
|
||||||
|
new RevealCardsFromHandEffect(self, playerId, new HashSet<PhysicalCard>(game.getGameState().getHand(playerId))));
|
||||||
|
int count = Filters.filter(game.getGameState().getHand(playerId), game.getGameState(), game.getModifiersQuerying(), Culture.ORC, Race.TROLL).size();
|
||||||
|
action.appendEffect(
|
||||||
|
new AddTwilightEffect(self, count));
|
||||||
|
return Collections.singletonList(action);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user