This commit is contained in:
marcins78@gmail.com
2011-11-10 15:43:35 +00:00
parent 80571d645f
commit e66fd677c8

View File

@@ -0,0 +1,55 @@
package com.gempukku.lotro.cards.set7.shire;
import com.gempukku.lotro.cards.AbstractCompanion;
import com.gempukku.lotro.common.Culture;
import com.gempukku.lotro.common.Keyword;
import com.gempukku.lotro.common.Race;
import com.gempukku.lotro.common.Signet;
import com.gempukku.lotro.game.PhysicalCard;
import com.gempukku.lotro.game.state.LotroGame;
import com.gempukku.lotro.logic.actions.OptionalTriggerAction;
import com.gempukku.lotro.logic.effects.AddTwilightEffect;
import com.gempukku.lotro.logic.effects.RemoveThreatsEffect;
import com.gempukku.lotro.logic.timing.EffectResult;
import java.util.Collections;
import java.util.List;
/**
* Set: The Return of the King
* Side: Free
* Culture: Shire
* Twilight Cost: 0
* Type: Companion • Hobbit
* Strength: 3
* Vitality: 4
* Resistance: 10
* Signet: Aragorn
* Game Text: Ring-bearer (resistance 10). Ring-bound. Each time the fellowship moves, you may add (3) to remove
* a threat.
*/
public class Card7_317 extends AbstractCompanion {
public Card7_317() {
super(0, 3, 4, Culture.SHIRE, Race.HOBBIT, Signet.ARAGORN, "Frodo", true);
addKeyword(Keyword.RING_BEARER);
addKeyword(Keyword.RING_BOUND);
}
@Override
public int getResistance() {
return 10;
}
@Override
public List<OptionalTriggerAction> getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) {
if (effectResult.getType() == EffectResult.Type.WHEN_FELLOWSHIP_MOVES) {
OptionalTriggerAction action = new OptionalTriggerAction(self);
action.appendCost(
new AddTwilightEffect(self, 3));
action.appendEffect(
new RemoveThreatsEffect(self, 1));
return Collections.singletonList(action);
}
return null;
}
}