"Dinendal"

This commit is contained in:
marcins78@gmail.com
2011-09-30 09:17:29 +00:00
parent 3fdd681e07
commit af8a8a95ab

View File

@@ -0,0 +1,49 @@
package com.gempukku.lotro.cards.set3.elven;
import com.gempukku.lotro.cards.AbstractAlly;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.costs.ExertCharactersCost;
import com.gempukku.lotro.cards.effects.RemoveTwilightEffect;
import com.gempukku.lotro.common.Culture;
import com.gempukku.lotro.common.Keyword;
import com.gempukku.lotro.common.Phase;
import com.gempukku.lotro.common.Race;
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: Realms of Elf-lords
* Side: Free
* Culture: Elven
* Twilight Cost: 2
* Type: Ally • Home 6 • Elf
* Strength: 3
* Vitality: 3
* Site: 6
* Game Text: Archer. Regroup: Exert Dinendal to remove (2).
*/
public class Card3_012 extends AbstractAlly {
public Card3_012() {
super(2, 6, 3, 3, Race.ELF, Culture.ELVEN, "Dinendal", true);
addKeyword(Keyword.ARCHER);
}
@Override
protected List<? extends Action> getExtraInPlayPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseFPCardDuringPhase(game.getGameState(), Phase.REGROUP, self)
&& PlayConditions.canExert(self, game.getGameState(), game.getModifiersQuerying(), self)) {
ActivateCardAction action = new ActivateCardAction(self, Keyword.REGROUP);
action.appendCost(
new ExertCharactersCost(self, self));
action.appendEffect(
new RemoveTwilightEffect(2));
return Collections.singletonList(action);
}
return null;
}
}