"Ring of Barahir", "Heirloom of Kings"
This commit is contained in:
@@ -0,0 +1,47 @@
|
|||||||
|
package com.gempukku.lotro.cards.set20.gondor;
|
||||||
|
|
||||||
|
import com.gempukku.lotro.cards.AbstractAttachableFPPossession;
|
||||||
|
import com.gempukku.lotro.cards.TriggerConditions;
|
||||||
|
import com.gempukku.lotro.common.CardType;
|
||||||
|
import com.gempukku.lotro.common.Culture;
|
||||||
|
import com.gempukku.lotro.common.Filterable;
|
||||||
|
import com.gempukku.lotro.common.PossessionClass;
|
||||||
|
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.OptionalTriggerAction;
|
||||||
|
import com.gempukku.lotro.logic.effects.ChooseAndHealCharactersEffect;
|
||||||
|
import com.gempukku.lotro.logic.timing.EffectResult;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 0
|
||||||
|
* •Ring of Barahir, Heirloom of Kings
|
||||||
|
* Gondor Artifact • Ring
|
||||||
|
* 1
|
||||||
|
* Bearer must be Aragorn.
|
||||||
|
* Each time the fellowship moves to a site from your adventure deck, you may heal an unbound companion.
|
||||||
|
*/
|
||||||
|
public class Card20_206 extends AbstractAttachableFPPossession {
|
||||||
|
public Card20_206() {
|
||||||
|
super(0, 0, 1, Culture.GONDOR, CardType.ARTIFACT, PossessionClass.RING, "Ring of Barahir", "Heirloom of Kings", true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected Filterable getValidTargetFilter(String playerId, LotroGame game, PhysicalCard self) {
|
||||||
|
return Filters.aragorn;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<OptionalTriggerAction> getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) {
|
||||||
|
if (TriggerConditions.movesTo(game, effectResult, Filters.owner(playerId))) {
|
||||||
|
OptionalTriggerAction action = new OptionalTriggerAction(self);
|
||||||
|
action.appendEffect(
|
||||||
|
new ChooseAndHealCharactersEffect(action, playerId, 1, 1, Filters.unboundCompanion));
|
||||||
|
return Collections.singletonList(action);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user