"Dinendal"

This commit is contained in:
marcins78@gmail.com
2012-01-17 12:13:46 +00:00
parent 8f38270290
commit 1e5fda549b

View File

@@ -0,0 +1,63 @@
package com.gempukku.lotro.cards.set15.elven;
import com.gempukku.lotro.cards.AbstractFollower;
import com.gempukku.lotro.cards.TriggerConditions;
import com.gempukku.lotro.cards.effects.ExertCharactersEffect;
import com.gempukku.lotro.common.CardType;
import com.gempukku.lotro.common.Culture;
import com.gempukku.lotro.common.Keyword;
import com.gempukku.lotro.common.Side;
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.AddTwilightEffect;
import com.gempukku.lotro.logic.modifiers.KeywordModifier;
import com.gempukku.lotro.logic.modifiers.Modifier;
import com.gempukku.lotro.logic.timing.Effect;
import com.gempukku.lotro.logic.timing.EffectResult;
import java.util.Collections;
import java.util.List;
/**
* Set: The Hunters
* Side: Free
* Culture: Elven
* Twilight Cost: 2
* Type: Follower
* Game Text: Aid - (3). (At the start of the maneuver phase, you may add (3) to transfer this to a companion.)
* Each time you transfer this to a companion, except an [ELVEN] companion, exert bearer. Bearer is an archer.
*/
public class Card15_012 extends AbstractFollower {
public Card15_012() {
super(Side.FREE_PEOPLE, 2, 0, 0, 0, Culture.ELVEN, "Dinendal", true);
}
@Override
protected boolean canPayAidCost(LotroGame game, PhysicalCard self) {
return true;
}
@Override
protected Effect getAidCost(LotroGame game, PhysicalCard self) {
return new AddTwilightEffect(self, 3);
}
@Override
protected List<? extends Modifier> getNonBasicStatsModifiers(PhysicalCard self) {
return Collections.singletonList(
new KeywordModifier(self, Filters.hasAttached(self), Keyword.ARCHER));
}
@Override
public List<RequiredTriggerAction> getRequiredAfterTriggers(LotroGame game, EffectResult effectResult, PhysicalCard self) {
if (TriggerConditions.transferredCard(game, effectResult, self, null, Filters.and(CardType.COMPANION, Filters.not(Culture.ELVEN)))) {
RequiredTriggerAction action = new RequiredTriggerAction(self);
action.appendEffect(
new ExertCharactersEffect(self, self.getAttachedTo()));
return Collections.singletonList(action);
}
return null;
}
}