This commit is contained in:
marcins78
2013-03-25 11:24:19 +00:00
parent a060a0d5c3
commit 9a090c8630
2 changed files with 12 additions and 8 deletions

View File

@@ -399,7 +399,7 @@ var set20 = {
'20_406': 'http://lotrtcg.org/coreset/shire/rosiecottongdb.jpg',
'20_407': 'http://lotrtcg.org/coreset/shire/samdoe.jpg',
'20_408': 'http://lotrtcg.org/coreset/shire/samhh.jpg',
'20_409': 'http://lotrtcg.org/coreset/shire/samspipe.jpg',
'20_409': 'http://lotrtcg.org/coreset/shire/samspipe(r2).jpg',
'20_410': 'http://lotrtcg.org/coreset/shire/savetheshire.jpg',
'20_411': 'http://lotrtcg.org/coreset/shire/shiresongs.jpg',
'20_412': 'http://lotrtcg.org/coreset/shire/southernstarsv.jpg',

View File

@@ -2,14 +2,15 @@ package com.gempukku.lotro.cards.set20.shire;
import com.gempukku.lotro.cards.AbstractAttachableFPPossession;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.CheckPhaseLimitEffect;
import com.gempukku.lotro.cards.effects.ForEachYouSpotEffect;
import com.gempukku.lotro.cards.effects.RemoveBurdenEffect;
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.actions.ActivateCardAction;
import com.gempukku.lotro.logic.effects.ChooseAndHealCharactersEffect;
import com.gempukku.lotro.logic.timing.Action;
import java.util.Collections;
@@ -18,9 +19,10 @@ import java.util.List;
/**
* 1
* •Sam's Pipe
* Shire Possession • Pipe
* Bearer must be Sam.
* Fellowship: Discard a pipeweed possession and spot X pipes to heal X Hobbit allies.
* Possession • Pipe
* Bearer must be a Hobbit.
* Fellowship: If bearer is Sam, you may discard a pipeweed possession and spot X pipes to remove X burdens (limit once per phase).
* http://lotrtcg.org/coreset/shire/samspipe(r2).jpg
*/
public class Card20_409 extends AbstractAttachableFPPossession {
public Card20_409() {
@@ -29,12 +31,13 @@ public class Card20_409 extends AbstractAttachableFPPossession {
@Override
protected Filterable getValidTargetFilter(String playerId, LotroGame game, PhysicalCard self) {
return Filters.sam;
return Race.HOBBIT;
}
@Override
protected List<? extends Action> getExtraInPlayPhaseActions(final String playerId, LotroGame game, PhysicalCard self) {
protected List<? extends Action> getExtraInPlayPhaseActions(final String playerId, LotroGame game, final PhysicalCard self) {
if (PlayConditions.canUseFPCardDuringPhase(game, Phase.FELLOWSHIP, self)
&& PlayConditions.isActive(game, Filters.name("Sam"), Filters.hasAttached(self))
&& PlayConditions.canDiscardFromPlay(self, game, CardType.POSSESSION, Keyword.PIPEWEED)) {
final ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
@@ -44,7 +47,8 @@ public class Card20_409 extends AbstractAttachableFPPossession {
@Override
protected void spottedCards(int spotCount) {
action.appendEffect(
new ChooseAndHealCharactersEffect(action, playerId, spotCount, spotCount, CardType.ALLY, Race.HOBBIT));
new CheckPhaseLimitEffect(action, self, 1,
new RemoveBurdenEffect(playerId, self, spotCount)));
}
});
return Collections.singletonList(action);