This commit is contained in:
marcins78@gmail.com
2011-12-04 22:48:08 +00:00
parent 52708d5510
commit 7ee92ac59d

View File

@@ -0,0 +1,49 @@
package com.gempukku.lotro.cards.set11.gondor;
import com.gempukku.lotro.cards.AbstractCompanion;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.SelfExertEffect;
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.effects.PlaySiteEffect;
import java.util.Collections;
import java.util.List;
/**
* Set: Shadows
* Side: Free
* Culture: Gondor
* Twilight Cost: 2
* Type: Companion • Man
* Strength: 6
* Vitality: 3
* Resistance: 7
* Game Text: Ranger. Fellowship: If Madril is at a forest site, exert him to play the fellowship's next site.
*/
public class Card11_062 extends AbstractCompanion {
public Card11_062() {
super(2, 6, 3, 7, Culture.GONDOR, Race.MAN, null, "Madril", true);
addKeyword(Keyword.RANGER);
}
@Override
protected List<ActivateCardAction> getExtraInPlayPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseFPCardDuringPhase(game, Phase.FELLOWSHIP, self)
&& PlayConditions.location(game, Keyword.FOREST)
&& PlayConditions.canSelfExert(self, game)) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new SelfExertEffect(self));
action.appendEffect(
new PlaySiteEffect(action, playerId, null, game.getGameState().getCurrentSiteNumber() + 1));
return Collections.singletonList(action);
}
return null;
}
}