"Flashing Spears"

This commit is contained in:
marcins78
2013-01-24 13:50:12 +00:00
parent 1a0a477830
commit feb7451034

View File

@@ -0,0 +1,38 @@
package com.gempukku.lotro.cards.set20.fallenRealms;
import com.gempukku.lotro.cards.AbstractPermanent;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.TriggerConditions;
import com.gempukku.lotro.common.*;
import com.gempukku.lotro.game.PhysicalCard;
import com.gempukku.lotro.game.state.LotroGame;
import com.gempukku.lotro.logic.actions.RequiredTriggerAction;
import com.gempukku.lotro.logic.effects.AddThreatsEffect;
import com.gempukku.lotro.logic.timing.EffectResult;
import java.util.Collections;
import java.util.List;
/**
* 3
* •Flashing Spears
* Fallen Realms Condition • Support Area
* Each time you wound a companion in the regroup phase, add a threat.
*/
public class Card20_122 extends AbstractPermanent {
public Card20_122() {
super(Side.SHADOW, 3, CardType.CONDITION, Culture.FALLEN_REALMS, Zone.SUPPORT, "Flashing Spears", null, true);
}
@Override
public List<RequiredTriggerAction> getRequiredAfterTriggers(LotroGame game, EffectResult effectResult, PhysicalCard self) {
if (TriggerConditions.forEachWounded(game, effectResult, CardType.COMPANION)
&& PlayConditions.isPhase(game, Phase.REGROUP)) {
RequiredTriggerAction action = new RequiredTriggerAction(self);
action.appendEffect(
new AddThreatsEffect(self.getOwner(), self, 1));
return Collections.singletonList(action);
}
return null;
}
}