"Fires and Foul Fumes"
This commit is contained in:
@@ -168,14 +168,18 @@ public class PlayConditions {
|
||||
return canBeDiscarded(source, game, source);
|
||||
}
|
||||
|
||||
public static boolean canBeDiscarded(final PhysicalCard source, LotroGame game, final Filterable... filters) {
|
||||
public static boolean canBeDiscarded(final PhysicalCard source, LotroGame game, int count, final Filterable... filters) {
|
||||
return Filters.countActive(game.getGameState(), game.getModifiersQuerying(), Filters.and(filters,
|
||||
new Filter() {
|
||||
@Override
|
||||
public boolean accepts(GameState gameState, ModifiersQuerying modifiersQuerying, PhysicalCard physicalCard) {
|
||||
return modifiersQuerying.canBeDiscardedFromPlay(gameState, physicalCard, source);
|
||||
}
|
||||
})) > 0;
|
||||
})) >= count;
|
||||
}
|
||||
|
||||
public static boolean canBeDiscarded(final PhysicalCard source, LotroGame game, final Filterable... filters) {
|
||||
return canBeDiscarded(source, game, 1, filters);
|
||||
}
|
||||
|
||||
public static boolean canExert(final PhysicalCard source, final GameState gameState, final ModifiersQuerying modifiersQuerying, Filterable... filters) {
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.gempukku.lotro.cards.set6.isengard;
|
||||
|
||||
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.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;
|
||||
import com.gempukku.lotro.logic.effects.ChooseAndWoundCharactersEffect;
|
||||
|
||||
/**
|
||||
* Set: Ents of Fangorn
|
||||
* Side: Shadow
|
||||
* Culture: Isengard
|
||||
* Twilight Cost: 4
|
||||
* Type: Event
|
||||
* Game Text: Regroup: Discard 4 [ISENGARD] orcs to wound a companion 4 times (except the Ring-bearer).
|
||||
*/
|
||||
public class Card6_062 extends AbstractEvent {
|
||||
public Card6_062() {
|
||||
super(Side.SHADOW, 4, Culture.ISENGARD, "Fires and Foul Fumes", Phase.REGROUP);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkPlayRequirements(String playerId, LotroGame game, PhysicalCard self, int twilightModifier) {
|
||||
return super.checkPlayRequirements(playerId, game, self, twilightModifier)
|
||||
&& PlayConditions.canBeDiscarded(self, game, 4, Culture.ISENGARD, Race.ORC);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PlayEventAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier) {
|
||||
PlayEventAction action = new PlayEventAction(self);
|
||||
action.appendCost(
|
||||
new ChooseAndDiscardCardsFromPlayEffect(action, playerId, 4, 4, Culture.ISENGARD, Race.ORC));
|
||||
action.appendEffect(
|
||||
new ChooseAndWoundCharactersEffect(action, playerId, 1, 1, 4, CardType.COMPANION, Filters.not(Keyword.RING_BEARER)));
|
||||
return action;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user