"Community Living"

This commit is contained in:
marcins78@gmail.com
2012-02-06 15:06:17 +00:00
parent fb7ab027fe
commit 191a909817

View File

@@ -0,0 +1,37 @@
package com.gempukku.lotro.cards.set15.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.choose.ChooseAndPlayCardFromDeckEffect;
import com.gempukku.lotro.common.*;
import com.gempukku.lotro.game.PhysicalCard;
import com.gempukku.lotro.game.state.LotroGame;
/**
* Set: The Hunters
* Side: Free
* Culture: Shire
* Twilight Cost: 0
* Type: Event • Fellowship
* Game Text: Spot a Hobbit to play a [SHIRE] follower from your draw deck.
*/
public class Card15_143 extends AbstractEvent {
public Card15_143() {
super(Side.FREE_PEOPLE, 0, Culture.SHIRE, "Community Living", Phase.FELLOWSHIP);
}
@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.canSpot(game, Race.HOBBIT);
}
@Override
public PlayEventAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier, boolean ignoreRoamingPenalty) {
PlayEventAction action = new PlayEventAction(self);
action.appendEffect(
new ChooseAndPlayCardFromDeckEffect(playerId, Culture.SHIRE, CardType.FOLLOWER));
return action;
}
}