"Kings' Legacy"
This commit is contained in:
@@ -0,0 +1,71 @@
|
|||||||
|
package com.gempukku.lotro.cards.set13.gondor;
|
||||||
|
|
||||||
|
import com.gempukku.lotro.cards.AbstractPermanent;
|
||||||
|
import com.gempukku.lotro.cards.TriggerConditions;
|
||||||
|
import com.gempukku.lotro.cards.effects.AddUntilStartOfPhaseModifierEffect;
|
||||||
|
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.RequiredTriggerAction;
|
||||||
|
import com.gempukku.lotro.logic.effects.ChooseActiveCardEffect;
|
||||||
|
import com.gempukku.lotro.logic.effects.ChooseAndHealCharactersEffect;
|
||||||
|
import com.gempukku.lotro.logic.modifiers.KeywordModifier;
|
||||||
|
import com.gempukku.lotro.logic.modifiers.StrengthModifier;
|
||||||
|
import com.gempukku.lotro.logic.timing.EffectResult;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set: Bloodlines
|
||||||
|
* Side: Free
|
||||||
|
* Culture: Gondor
|
||||||
|
* Twilight Cost: 2
|
||||||
|
* Type: Condition • Support Area
|
||||||
|
* Game Text: Each time Elendil wins a skirmish, make a [GONDOR] or [ELVEN] companion strength +2 until the start of
|
||||||
|
* the regroup phase. Each time Isildur wins a skirmish, heal a Man. Each time Aragorn wins a skirmish, make
|
||||||
|
* a [GONDOR] Man damage +1 until the start of the regroup phase.
|
||||||
|
*/
|
||||||
|
public class Card13_072 extends AbstractPermanent {
|
||||||
|
public Card13_072() {
|
||||||
|
super(Side.FREE_PEOPLE, 2, CardType.CONDITION, Culture.GONDOR, Zone.SUPPORT, "Kings' Legacy", true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<RequiredTriggerAction> getRequiredAfterTriggers(LotroGame game, EffectResult effectResult, final PhysicalCard self) {
|
||||||
|
if (TriggerConditions.winsSkirmish(game, effectResult, Filters.name("Elendil"))) {
|
||||||
|
final RequiredTriggerAction action = new RequiredTriggerAction(self);
|
||||||
|
action.appendEffect(
|
||||||
|
new ChooseActiveCardEffect(self, self.getOwner(), "Choose a GONDOR or ELVEN companion", CardType.COMPANION, Filters.or(Culture.GONDOR, Culture.ELVEN)) {
|
||||||
|
@Override
|
||||||
|
protected void cardSelected(LotroGame game, PhysicalCard card) {
|
||||||
|
action.appendEffect(
|
||||||
|
new AddUntilStartOfPhaseModifierEffect(
|
||||||
|
new StrengthModifier(self, card, 2), Phase.REGROUP));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return Collections.singletonList(action);
|
||||||
|
}
|
||||||
|
if (TriggerConditions.winsSkirmish(game, effectResult, Filters.name("Isildur"))) {
|
||||||
|
RequiredTriggerAction action = new RequiredTriggerAction(self);
|
||||||
|
action.appendEffect(
|
||||||
|
new ChooseAndHealCharactersEffect(action, self.getOwner(), Race.MAN));
|
||||||
|
return Collections.singletonList(action);
|
||||||
|
}
|
||||||
|
if (TriggerConditions.winsSkirmish(game, effectResult, Filters.aragorn)) {
|
||||||
|
final RequiredTriggerAction action = new RequiredTriggerAction(self);
|
||||||
|
action.appendEffect(
|
||||||
|
new ChooseActiveCardEffect(self, self.getOwner(), "Choose a GONDOR Man", Culture.GONDOR, Race.MAN) {
|
||||||
|
@Override
|
||||||
|
protected void cardSelected(LotroGame game, PhysicalCard card) {
|
||||||
|
action.appendEffect(
|
||||||
|
new AddUntilStartOfPhaseModifierEffect(
|
||||||
|
new KeywordModifier(self, card, Keyword.DAMAGE, 1), Phase.REGROUP));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return Collections.singletonList(action);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user