"Blade of the White Hand"
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
package com.gempukku.lotro.cards.set17.uruk_hai;
|
||||
|
||||
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.SpotCondition;
|
||||
import com.gempukku.lotro.logic.modifiers.StrengthModifier;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Set: Rise of Saruman
|
||||
* Side: Shadow
|
||||
* Culture: Uruk-hai
|
||||
* Twilight Cost: 1
|
||||
* Type: Possession • Hand Weapon
|
||||
* Strength: +1
|
||||
* Game Text: Bearer must be an [URUK-HAI] Uruk-hai. While you can spot 2 controlled sites, this minion is damage +1.
|
||||
* While you can spot 4 controlled sites, this minion is damage +3.
|
||||
*/
|
||||
public class Card17_112 extends AbstractAttachable {
|
||||
public Card17_112() {
|
||||
super(Side.SHADOW, CardType.POSSESSION, 1, Culture.URUK_HAI, PossessionClass.HAND_WEAPON, "Blade of the White Hand");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Filterable getValidTargetFilter(String playerId, LotroGame game, PhysicalCard self) {
|
||||
return Filters.and(Culture.URUK_HAI, Race.URUK_HAI);
|
||||
}
|
||||
|
||||
@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.hasAttached(self), new SpotCondition(2, Filters.siteControlledByAnyPlayer), Keyword.DAMAGE, 1));
|
||||
modifiers.add(
|
||||
new KeywordModifier(self, Filters.hasAttached(self), new SpotCondition(4, Filters.siteControlledByAnyPlayer), Keyword.DAMAGE, 3));
|
||||
return modifiers;
|
||||
}
|
||||
}
|
||||
@@ -727,6 +727,13 @@ public class Filters {
|
||||
};
|
||||
}
|
||||
|
||||
public static Filter siteControlledByAnyPlayer = new Filter() {
|
||||
@Override
|
||||
public boolean accepts(GameState gameState, ModifiersQuerying modifiersQuerying, PhysicalCard physicalCard) {
|
||||
return physicalCard.getBlueprint().getCardType() == CardType.SITE && physicalCard.getCardController() != null;
|
||||
}
|
||||
};
|
||||
|
||||
public static Filter siteControlled(final String playerId) {
|
||||
return new Filter() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user