This commit is contained in:
marcins78@gmail.com
2011-10-13 15:45:52 +00:00
parent 54aeab9125
commit e90223a58d
3 changed files with 51 additions and 2 deletions

View File

@@ -0,0 +1,49 @@
package com.gempukku.lotro.cards.set4.rohan;
import com.gempukku.lotro.cards.AbstractAlly;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.AddUntilEndOfPhaseModifierEffect;
import com.gempukku.lotro.cards.effects.ExertCharactersEffect;
import com.gempukku.lotro.cards.modifiers.ArcheryTotalModifier;
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.ActivateCardAction;
import com.gempukku.lotro.logic.timing.Action;
import java.util.Collections;
import java.util.List;
/**
* Set: The Two Towers
* Side: Free
* Culture: Rohan
* Twilight Cost: 1
* Type: Ally • Home 3T & 6T • Man
* Strength: 3
* Vitality: 2
* Site: 3T, 6T
* Game Text: Archery: Exert Aldor and spot a villager to make the fellowship archery total +1.
*/
public class Card4_262 extends AbstractAlly {
public Card4_262() {
super(1, Block.TWO_TOWERS, new int[]{3, 6}, 3, 2, Race.MAN, Culture.ROHAN, "Aldor", true);
}
@Override
protected List<? extends Action> getExtraInPlayPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseFPCardDuringPhase(game.getGameState(), Phase.ARCHERY, self)
&& PlayConditions.canExert(self, game, Filters.sameCard(self))
&& PlayConditions.canSpot(game, Filters.keyword(Keyword.VILLAGER))) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new ExertCharactersEffect(self, self));
action.appendEffect(
new AddUntilEndOfPhaseModifierEffect(
new ArcheryTotalModifier(self, Side.FREE_PEOPLE, 1), Phase.ARCHERY));
return Collections.singletonList(action);
}
return null;
}
}

View File

@@ -15,7 +15,7 @@ public enum Keyword {
BATTLEGROUND("Battleground", true),
DAMAGE("Damage", true, true), DEFENDER("Defender", true, true), AMBUSH("Ambush", true, true), FIERCE("Fierce", true), ARCHER("Archer", true),
UNHASTY("Unhasty", true), RANGER("Ranger", true), TRACKER("Tracker", true), MACHINE("Machine", true), SOUTHRON("Southron", true), EASTERLING("Easterling", true),
UNHASTY("Unhasty", true), RANGER("Ranger", true), TRACKER("Tracker", true), VILLAGER("Villager", true), MACHINE("Machine", true), SOUTHRON("Southron", true), EASTERLING("Easterling", true),
HAND_WEAPON("Hand Weapon"), ARMOR("Armor"), HELM("Helm"), MOUNT("Mount"), RANGED_WEAPON("Ranged Weapon"),
CLOAK("Cloak"), PIPE("Pipe"), PIPEWEED("Pipeweed"), SHIELD("Shield"), BRACERS("Bracers"), STAFF("Staff"), RING("Ring"),

View File

@@ -11,7 +11,7 @@ import java.util.Map;
public class LotroCardBlueprintLibrary {
private String[] _packageNames =
new String[]{
"", ".dwarven", ".dunland", ".elven", ".gandalf", ".gondor", ".isengard", ".raider", ".moria", ".wraith", ".sauron", ".shire", ".site"
"", ".dwarven", ".dunland", ".elven", ".gandalf", ".gondor", ".isengard", ".raider", ".rohan", ".moria", ".wraith", ".sauron", ".shire", ".site"
};
private Map<String, LotroCardBlueprint> _blueprintMap = new HashMap<String, LotroCardBlueprint>();