"Diversion"
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
package com.gempukku.lotro.cards.set12.shire;
|
||||
|
||||
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.AddBurdenEffect;
|
||||
import com.gempukku.lotro.cards.effects.choose.ChooseAndDiscardCardsFromPlayEffect;
|
||||
import com.gempukku.lotro.common.*;
|
||||
import com.gempukku.lotro.filters.Filters;
|
||||
import com.gempukku.lotro.game.PhysicalCard;
|
||||
import com.gempukku.lotro.game.state.LotroGame;
|
||||
|
||||
/**
|
||||
* Set: Black Rider
|
||||
* Side: Free
|
||||
* Culture: Shire
|
||||
* Twilight Cost: 1
|
||||
* Type: Event • Regroup
|
||||
* Game Text: Discard a Hobbit not assigned to a skirmish from play to discard a minion from play. If the fellowship is
|
||||
* at a battleground site, you may add 2 burdens to play this event during a skirmish involving a Hobbit.
|
||||
*/
|
||||
public class Card12_120 extends AbstractEvent {
|
||||
public Card12_120() {
|
||||
super(Side.FREE_PEOPLE, 1, Culture.SHIRE, "Diversion", Phase.REGROUP, Phase.SKIRMISH);
|
||||
}
|
||||
|
||||
@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.canDiscardFromPlay(self, game, Race.HOBBIT, Filters.notAssignedToSkirmish)
|
||||
&& (
|
||||
!PlayConditions.isPhase(game, Phase.SKIRMISH)
|
||||
|| (
|
||||
PlayConditions.location(game, Keyword.BATTLEGROUND)
|
||||
&& PlayConditions.canSpot(game, Filters.inSkirmish, Race.HOBBIT)));
|
||||
}
|
||||
|
||||
@Override
|
||||
public PlayEventAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier, boolean ignoreRoamingPenalty) {
|
||||
PlayEventAction action = new PlayEventAction(self);
|
||||
if (PlayConditions.isPhase(game, Phase.SKIRMISH))
|
||||
action.appendCost(
|
||||
new AddBurdenEffect(self, 2));
|
||||
action.appendCost(
|
||||
new ChooseAndDiscardCardsFromPlayEffect(action, playerId, 1, 1, Race.HOBBIT, Filters.notAssignedToSkirmish));
|
||||
action.appendEffect(
|
||||
new ChooseAndDiscardCardsFromPlayEffect(action, playerId, 1, 1, CardType.MINION));
|
||||
return action;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user