"Strength In My Blood"

This commit is contained in:
marcins78@gmail.com
2012-03-09 11:22:59 +00:00
parent e5853e303b
commit 72ebde1622

View File

@@ -0,0 +1,43 @@
package com.gempukku.lotro.cards.set19.gondor;
import com.gempukku.lotro.cards.AbstractAttachable;
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.modifiers.KeywordModifier;
import com.gempukku.lotro.logic.modifiers.Modifier;
import com.gempukku.lotro.logic.modifiers.StrengthModifier;
import java.util.LinkedList;
import java.util.List;
/**
* Set: Ages End
* Side: Free
* Culture: Gondor
* Twilight Cost: 1
* Type: Condition
* Strength: +1
* Game Text: Bearer must be a fellowship companion. While bearer is a [GONDOR] companion, he or she is damage +1.
*/
public class Card19_015 extends AbstractAttachable {
public Card19_015() {
super(Side.FREE_PEOPLE, CardType.CONDITION, 1, Culture.GONDOR, null, "Strength In My Blood");
}
@Override
protected Filterable getValidTargetFilter(String playerId, LotroGame game, PhysicalCard self) {
return Filters.and(CardType.COMPANION, Keyword.FELLOWSHIP);
}
@Override
public List<? extends Modifier> getAlwaysOnModifiers(LotroGame game, PhysicalCard self) {
List<Modifier> modifiers = new LinkedList<Modifier>();
modifiers.add(
new StrengthModifier(self, Filters.hasAttached(self), 1));
modifiers.add(
new KeywordModifier(self, Filters.and(Filters.hasAttached(self), Culture.GONDOR, CardType.COMPANION), Keyword.DAMAGE, 1));
return modifiers;
}
}