"Momentous Gathering"
This commit is contained in:
@@ -0,0 +1,73 @@
|
|||||||
|
package com.gempukku.lotro.cards.set15.gandalf;
|
||||||
|
|
||||||
|
import com.gempukku.lotro.cards.AbstractEvent;
|
||||||
|
import com.gempukku.lotro.cards.PlayConditions;
|
||||||
|
import com.gempukku.lotro.cards.actions.PlayEventAction;
|
||||||
|
import com.gempukku.lotro.cards.effects.ChoiceEffect;
|
||||||
|
import com.gempukku.lotro.cards.effects.ShuffleDeckEffect;
|
||||||
|
import com.gempukku.lotro.cards.effects.choose.ChooseAndPutCardFromDeckIntoHandEffect;
|
||||||
|
import com.gempukku.lotro.common.*;
|
||||||
|
import com.gempukku.lotro.game.PhysicalCard;
|
||||||
|
import com.gempukku.lotro.game.state.LotroGame;
|
||||||
|
import com.gempukku.lotro.logic.timing.Effect;
|
||||||
|
|
||||||
|
import java.util.LinkedList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set: The Hunters
|
||||||
|
* Side: Free
|
||||||
|
* Culture: Gandalf
|
||||||
|
* Twilight Cost: 1
|
||||||
|
* Type: Event • Fellowship
|
||||||
|
* Game Text: Choose one: spot an Ent to take a [GANDALF] companion into hand from your draw deck; or spot 2 Ents
|
||||||
|
* to take a [GANDALF] companion and a [GANDALF] condition into hand from your draw deck. Shuffle your draw deck.
|
||||||
|
*/
|
||||||
|
public class Card15_032 extends AbstractEvent {
|
||||||
|
public Card15_032() {
|
||||||
|
super(Side.FREE_PEOPLE, 1, Culture.GANDALF, "Momentous Gathering", Phase.FELLOWSHIP);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean checkPlayRequirements(String playerId, LotroGame game, PhysicalCard self, int withTwilightRemoved, int twilightModifier, boolean ignoreRoamingPenalty, boolean ignoreCheckingDeadPile) {
|
||||||
|
return super.checkPlayRequirements(playerId, game, self, withTwilightRemoved, twilightModifier, ignoreRoamingPenalty, ignoreCheckingDeadPile)
|
||||||
|
&& PlayConditions.canSpot(game, Race.ENT);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PlayEventAction getPlayCardAction(final String playerId, LotroGame game, PhysicalCard self, int twilightModifier, boolean ignoreRoamingPenalty) {
|
||||||
|
final PlayEventAction action = new PlayEventAction(self);
|
||||||
|
List<Effect> possibleEffects = new LinkedList<Effect>();
|
||||||
|
if (PlayConditions.canSpot(game, Race.ENT)) {
|
||||||
|
possibleEffects.add(
|
||||||
|
new ChooseAndPutCardFromDeckIntoHandEffect(action, playerId, 1, 1, Culture.GANDALF, CardType.COMPANION) {
|
||||||
|
@Override
|
||||||
|
public String getText(LotroGame game) {
|
||||||
|
return "Take a GANDALF companion into hand from your draw deck";
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (PlayConditions.canSpot(game, 2, Race.ENT)) {
|
||||||
|
possibleEffects.add(
|
||||||
|
new ChooseAndPutCardFromDeckIntoHandEffect(action, playerId, 1, 1, Culture.GANDALF, CardType.COMPANION) {
|
||||||
|
@Override
|
||||||
|
protected FullEffectResult playEffectReturningResult(LotroGame game) {
|
||||||
|
final FullEffectResult fullEffectResult = super.playEffectReturningResult(game);
|
||||||
|
action.appendEffect(
|
||||||
|
new ChooseAndPutCardFromDeckIntoHandEffect(action, playerId, 1, 1, Culture.GANDALF, CardType.CONDITION));
|
||||||
|
return fullEffectResult;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getText(LotroGame game) {
|
||||||
|
return "Take a GANDALF companion and condition into hand from your draw deck";
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
action.appendEffect(
|
||||||
|
new ChoiceEffect(action, playerId, possibleEffects));
|
||||||
|
action.appendEffect(
|
||||||
|
new ShuffleDeckEffect(playerId));
|
||||||
|
return action;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user