"Orkish Worker"
This commit is contained in:
@@ -0,0 +1,61 @@
|
|||||||
|
package com.gempukku.lotro.cards.set11.orc;
|
||||||
|
|
||||||
|
import com.gempukku.lotro.cards.AbstractMinion;
|
||||||
|
import com.gempukku.lotro.cards.PlayConditions;
|
||||||
|
import com.gempukku.lotro.cards.TriggerConditions;
|
||||||
|
import com.gempukku.lotro.cards.effects.RevealTopCardsOfDrawDeckEffect;
|
||||||
|
import com.gempukku.lotro.common.CardType;
|
||||||
|
import com.gempukku.lotro.common.Culture;
|
||||||
|
import com.gempukku.lotro.common.Race;
|
||||||
|
import com.gempukku.lotro.common.Side;
|
||||||
|
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.effects.AddTwilightEffect;
|
||||||
|
import com.gempukku.lotro.logic.timing.EffectResult;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set: Shadows
|
||||||
|
* Side: Shadow
|
||||||
|
* Culture: Orc
|
||||||
|
* Twilight Cost: 3
|
||||||
|
* Type: Minion • Orc
|
||||||
|
* Strength: 9
|
||||||
|
* Vitality: 2
|
||||||
|
* Site: 4
|
||||||
|
* Game Text: When you play this minion, you may spot another [ORC] minion to reveal the top card of the Free Peoples
|
||||||
|
* player's deck. If it is a Shadow card, add (X), where X is its twilight cost.
|
||||||
|
*/
|
||||||
|
public class Card11_133 extends AbstractMinion {
|
||||||
|
public Card11_133() {
|
||||||
|
super(3, 9, 2, 4, Race.ORC, Culture.ORC, "Orkish Worker");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<OptionalTriggerAction> getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, final PhysicalCard self) {
|
||||||
|
if (TriggerConditions.played(game, effectResult, self)
|
||||||
|
&& PlayConditions.canSpot(game, Filters.not(self), Culture.ORC, CardType.MINION)) {
|
||||||
|
final OptionalTriggerAction action = new OptionalTriggerAction(self);
|
||||||
|
action.appendEffect(
|
||||||
|
new RevealTopCardsOfDrawDeckEffect(self, game.getGameState().getCurrentPlayerId(), 1) {
|
||||||
|
@Override
|
||||||
|
protected void cardsRevealed(List<PhysicalCard> cards) {
|
||||||
|
for (PhysicalCard card : cards) {
|
||||||
|
if (card.getBlueprint().getSide() == Side.SHADOW) {
|
||||||
|
int twilightCost = card.getBlueprint().getTwilightCost();
|
||||||
|
if (twilightCost > 0)
|
||||||
|
action.appendEffect(
|
||||||
|
new AddTwilightEffect(self, twilightCost));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return Collections.singletonList(action);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user