"Wulf, Watchief of Dunland"

This commit is contained in:
marcins78
2013-01-03 15:23:34 +00:00
parent f62db2cd63
commit 28a637f75c

View File

@@ -0,0 +1,46 @@
package com.gempukku.lotro.cards.set20.dunland;
import com.gempukku.lotro.cards.AbstractMinion;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.RemoveTwilightEffect;
import com.gempukku.lotro.cards.effects.choose.ChooseAndPutCardFromDiscardIntoHandEffect;
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.game.PhysicalCard;
import com.gempukku.lotro.game.state.LotroGame;
import com.gempukku.lotro.logic.actions.ActivateCardAction;
import com.gempukku.lotro.logic.timing.Action;
import java.util.Collections;
import java.util.List;
/**
* 4
* • Wulf, Warchief of Dunland
* Dunland Minion • Man
* 10 2 3
* Fierce. Shadow: If the fellowship has moved again this turn, remove (2) to take a [Dunland] card
* into hand from your discard pile.
*/
public class Card20_021 extends AbstractMinion {
public Card20_021() {
super(4, 10, 2, 3, Race.MAN, Culture.DUNLAND, "Wulf", "Watchief of Dunland", true);
addKeyword(Keyword.FIERCE);
}
@Override
protected List<? extends Action> getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.SHADOW, self, 2)
&& game.getGameState().getMoveCount()>1) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new RemoveTwilightEffect(2));
action.appendEffect(
new ChooseAndPutCardFromDiscardIntoHandEffect(action, playerId, 1,1, Culture.DUNLAND));
return Collections.singletonList(action);
}
return null;
}
}