This commit is contained in:
marcins78
2013-03-25 11:22:44 +00:00
parent 7de4b1e655
commit a060a0d5c3
2 changed files with 11 additions and 7 deletions

View File

@@ -393,7 +393,7 @@ var set20 = {
'20_400': 'http://lotrtcg.org/coreset/shire/oldtobyfwits.jpg',
'20_401': 'http://lotrtcg.org/coreset/shire/pippinfc(r2).jpg',
'20_402': 'http://lotrtcg.org/coreset/shire/pippinht.jpg',
'20_403': 'http://lotrtcg.org/coreset/shire/pippinspipe.jpg',
'20_403': 'http://lotrtcg.org/coreset/shire/pippinspipe(r2).jpg',
'20_404': 'http://lotrtcg.org/coreset/shire/promise.jpg',
'20_405': 'http://lotrtcg.org/coreset/shire/robinsmallburrowsoh(r1).jpg',
'20_406': 'http://lotrtcg.org/coreset/shire/rosiecottongdb.jpg',

View File

@@ -2,6 +2,7 @@ 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.choose.ChooseAndDiscardCardsFromPlayEffect;
import com.gempukku.lotro.common.*;
@@ -18,9 +19,10 @@ import java.util.List;
/**
* 1
* •Pippin's Pipe
* Shire Possession • Pipe
* Bearer must be Pippin.
* Fellowship: Discard a pipeweed possesion and spot X pipes to remove X threats.
* Possession • Pipe
* Bearer must be a Hobbit.
* Regroup: If bearer is Pippin, discard a pipeweed possession and spot X pipes to remove X threats (limit once per phase).
* http://lotrtcg.org/coreset/shire/pippinspipe(r2).jpg
*/
public class Card20_403 extends AbstractAttachableFPPossession {
public Card20_403() {
@@ -29,12 +31,13 @@ public class Card20_403 extends AbstractAttachableFPPossession {
@Override
protected Filterable getValidTargetFilter(String playerId, LotroGame game, PhysicalCard self) {
return Filters.name("Pippin");
return Race.HOBBIT;
}
@Override
protected List<? extends Action> getExtraInPlayPhaseActions(String playerId, LotroGame game, final PhysicalCard self) {
if (PlayConditions.canUseFPCardDuringPhase(game, Phase.FELLOWSHIP, self)
if (PlayConditions.canUseFPCardDuringPhase(game, Phase.REGROUP, self)
&& PlayConditions.isActive(game, Filters.name("Pippin"), 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_403 extends AbstractAttachableFPPossession {
@Override
protected void spottedCards(int spotCount) {
action.appendEffect(
new RemoveThreatsEffect(self, spotCount));
new CheckPhaseLimitEffect(action, self, 1,
new RemoveThreatsEffect(self, spotCount)));
}
});
return Collections.singletonList(action);