"Hama"
This commit is contained in:
@@ -0,0 +1,56 @@
|
|||||||
|
package com.gempukku.lotro.cards.set6.rohan;
|
||||||
|
|
||||||
|
import com.gempukku.lotro.cards.AbstractCompanion;
|
||||||
|
import com.gempukku.lotro.cards.PlayConditions;
|
||||||
|
import com.gempukku.lotro.cards.effects.ExertCharactersEffect;
|
||||||
|
import com.gempukku.lotro.cards.effects.choose.ChooseAndDiscardCardsFromPlayEffect;
|
||||||
|
import com.gempukku.lotro.common.CardType;
|
||||||
|
import com.gempukku.lotro.common.Culture;
|
||||||
|
import com.gempukku.lotro.common.Phase;
|
||||||
|
import com.gempukku.lotro.common.Race;
|
||||||
|
import com.gempukku.lotro.filters.Filters;
|
||||||
|
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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set: Ents of Fangorn
|
||||||
|
* Side: Free
|
||||||
|
* Culture: Rohan
|
||||||
|
* Twilight Cost: 2
|
||||||
|
* Type: Companion • Man
|
||||||
|
* Strength: 6
|
||||||
|
* Vitality: 3
|
||||||
|
* Resistance: 6
|
||||||
|
* Game Text: To play, spot a [ROHAN] Man. Skirmish: Exert Hama to discard a possession borne by a minion he
|
||||||
|
* is skirmishing.
|
||||||
|
*/
|
||||||
|
public class Card6_094 extends AbstractCompanion {
|
||||||
|
public Card6_094() {
|
||||||
|
super(2, 6, 3, Culture.ROHAN, Race.MAN, null, "Hama", true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean checkPlayRequirements(String playerId, LotroGame game, PhysicalCard self, int twilightModifier) {
|
||||||
|
return super.checkPlayRequirements(playerId, game, self, twilightModifier)
|
||||||
|
&& PlayConditions.canSpot(game, Culture.ROHAN, Race.MAN);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected List<? extends Action> getExtraInPlayPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
|
||||||
|
if (PlayConditions.canUseFPCardDuringPhase(game.getGameState(), Phase.SKIRMISH, self)
|
||||||
|
&& PlayConditions.canSelfExert(self, game)) {
|
||||||
|
ActivateCardAction action = new ActivateCardAction(self);
|
||||||
|
action.appendCost(
|
||||||
|
new ExertCharactersEffect(self, self));
|
||||||
|
action.appendEffect(
|
||||||
|
new ChooseAndDiscardCardsFromPlayEffect(action, playerId, 1, 1, CardType.POSSESSION, Filters.attachedTo(CardType.MINION, Filters.inSkirmishAgainst(self))));
|
||||||
|
return Collections.singletonList(action);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user