"Hobbitses Are Dead"
This commit is contained in:
@@ -51,9 +51,7 @@ public abstract class AbstractOldEvent extends AbstractLotroCardBlueprint {
|
|||||||
@Override
|
@Override
|
||||||
public final List<? extends Action> getPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
|
public final List<? extends Action> getPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
|
||||||
if (_playableInPhases != null) {
|
if (_playableInPhases != null) {
|
||||||
Side side = self.getBlueprint().getSide();
|
if (PlayConditions.canPlayCardDuringPhase(game, _playableInPhases, self)) {
|
||||||
if ((side == Side.FREE_PEOPLE && PlayConditions.canPlayCardDuringPhase(game, _playableInPhases, self))
|
|
||||||
|| (side == Side.SHADOW && PlayConditions.canPlayCardDuringPhase(game, _playableInPhases, self))) {
|
|
||||||
if (checkPlayRequirements(playerId, game, self, 0))
|
if (checkPlayRequirements(playerId, game, self, 0))
|
||||||
return Collections.singletonList(getPlayCardAction(playerId, game, self, 0));
|
return Collections.singletonList(getPlayCardAction(playerId, game, self, 0));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,78 @@
|
|||||||
|
package com.gempukku.lotro.cards.set7.gollum;
|
||||||
|
|
||||||
|
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.choose.ChooseAndAddUntilEOPStrengthBonusEffect;
|
||||||
|
import com.gempukku.lotro.common.*;
|
||||||
|
import com.gempukku.lotro.filters.Filters;
|
||||||
|
import com.gempukku.lotro.game.PhysicalCard;
|
||||||
|
import com.gempukku.lotro.game.state.LotroGame;
|
||||||
|
import com.gempukku.lotro.logic.timing.AbstractSuccessfulEffect;
|
||||||
|
import com.gempukku.lotro.logic.timing.Action;
|
||||||
|
import com.gempukku.lotro.logic.timing.EffectResult;
|
||||||
|
|
||||||
|
import java.util.Collection;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set: The Return of the King
|
||||||
|
* Side: Shadow
|
||||||
|
* Culture: Gollum
|
||||||
|
* Twilight Cost: 1
|
||||||
|
* Type: Event • Skirmish
|
||||||
|
* Game Text: Spot Gollum or Smeagol to make a Nazgul, [SAURON] minion, or [GOLLUM] minion strength +2. If you have
|
||||||
|
* initiative, you may play this event from your discard pile; place it under your draw deck instead of discarding it.
|
||||||
|
*/
|
||||||
|
public class Card7_061 extends AbstractEvent {
|
||||||
|
public Card7_061() {
|
||||||
|
super(Side.SHADOW, 1, Culture.GOLLUM, "Hobbitses Are Dead", Phase.SKIRMISH);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean checkPlayRequirements(String playerId, LotroGame game, PhysicalCard self, int twilightModifier) {
|
||||||
|
return super.checkPlayRequirements(playerId, game, self, twilightModifier)
|
||||||
|
&& PlayConditions.canSpot(game, Filters.or(Filters.name("Gollum"), Filters.name("Smeagol")));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PlayEventAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier) {
|
||||||
|
PlayEventAction action = new PlayEventAction(self);
|
||||||
|
action.appendEffect(
|
||||||
|
new ChooseAndAddUntilEOPStrengthBonusEffect(action, self, playerId, 2,
|
||||||
|
Filters.or(Race.NAZGUL, Filters.and(Culture.SAURON, CardType.MINION), Filters.and(Culture.GOLLUM, CardType.MINION))));
|
||||||
|
return action;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<? extends Action> getPhaseActionsFromDiscard(String playerId, LotroGame game, final PhysicalCard self) {
|
||||||
|
if (PlayConditions.isPhase(game, Phase.SKIRMISH)
|
||||||
|
&& PlayConditions.hasInitiative(game, Side.SHADOW)
|
||||||
|
&& checkPlayRequirements(playerId, game, self, 0)) {
|
||||||
|
final PlayEventAction playCardAction = getPlayCardAction(playerId, game, self, 0);
|
||||||
|
playCardAction.appendEffect(
|
||||||
|
new AbstractSuccessfulEffect() {
|
||||||
|
@Override
|
||||||
|
public String getText(LotroGame game) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Type getType() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Collection<? extends EffectResult> playEffect(LotroGame game) {
|
||||||
|
playCardAction.skipDiscardPart();
|
||||||
|
game.getGameState().putCardOnBottomOfDeck(self);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
return Collections.singletonList(playCardAction);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user