Fixing texts for Choice effects/costs.
This commit is contained in:
@@ -54,9 +54,19 @@ public class Card1_047 extends AbstractAttachableFPPossession {
|
||||
|
||||
List<Effect> possibleCosts = new LinkedList<Effect>();
|
||||
possibleCosts.add(
|
||||
new ExertCharactersEffect(self, self.getAttachedTo()));
|
||||
new ExertCharactersEffect(self, self.getAttachedTo()) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Exert Arwen";
|
||||
}
|
||||
});
|
||||
possibleCosts.add(
|
||||
new ChooseAndDiscardCardsFromHandEffect(action, playerId, false, 2));
|
||||
new ChooseAndDiscardCardsFromHandEffect(action, playerId, false, 2) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Discard 2 cards from hand";
|
||||
}
|
||||
});
|
||||
|
||||
action.appendCost(
|
||||
new ChoiceEffect(action, playerId, possibleCosts));
|
||||
|
||||
@@ -52,8 +52,18 @@ public class Card1_124 extends AbstractOldEvent {
|
||||
new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Filters.culture(Culture.ISENGARD), Filters.type(CardType.MINION)));
|
||||
|
||||
List<Effect> possibleEffects = new LinkedList<Effect>();
|
||||
possibleEffects.add(new ExertCharactersEffect(self, game.getGameState().getRingBearer(fpPlayer)));
|
||||
possibleEffects.add(new AddBurdenEffect(self, 1));
|
||||
possibleEffects.add(new ExertCharactersEffect(self, game.getGameState().getRingBearer(fpPlayer)) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Exert Ring-bearer";
|
||||
}
|
||||
});
|
||||
possibleEffects.add(new AddBurdenEffect(self, 1) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Add a burden";
|
||||
}
|
||||
});
|
||||
|
||||
action.appendEffect(
|
||||
new ChoiceEffect(action, fpPlayer, possibleEffects));
|
||||
|
||||
@@ -56,7 +56,12 @@ public class Card1_137 extends AbstractOldEvent {
|
||||
}
|
||||
});
|
||||
|
||||
possibleEffects.add(new PutOnTheOneRingEffect());
|
||||
possibleEffects.add(new PutOnTheOneRingEffect() {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Put on The One Ring";
|
||||
}
|
||||
});
|
||||
|
||||
action.appendEffect(
|
||||
new ChoiceEffect(action, game.getGameState().getCurrentPlayerId(), possibleEffects));
|
||||
|
||||
@@ -54,8 +54,18 @@ public class Card1_162 extends AbstractPermanent {
|
||||
if (PlayConditions.winsSkirmish(gameState, game.getModifiersQuerying(), effectResult, Filters.race(Race.URUK_HAI))) {
|
||||
RequiredTriggerAction action = new RequiredTriggerAction(self);
|
||||
List<Effect> possibleEffects = new LinkedList<Effect>();
|
||||
possibleEffects.add(new ExertCharactersEffect(self, gameState.getRingBearer(gameState.getCurrentPlayerId())));
|
||||
possibleEffects.add(new AddBurdenEffect(self, 1));
|
||||
possibleEffects.add(new ExertCharactersEffect(self, gameState.getRingBearer(gameState.getCurrentPlayerId())) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Exert the Ring-bearer";
|
||||
}
|
||||
});
|
||||
possibleEffects.add(new AddBurdenEffect(self, 1) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Add a burden";
|
||||
}
|
||||
});
|
||||
|
||||
action.appendEffect(
|
||||
new ChoiceEffect(action, game.getGameState().getCurrentPlayerId(), possibleEffects));
|
||||
|
||||
@@ -64,9 +64,19 @@ public class Card1_244 extends AbstractAttachable {
|
||||
RequiredTriggerAction action = new RequiredTriggerAction(self);
|
||||
List<Effect> possibleEffects = new LinkedList<Effect>();
|
||||
possibleEffects.add(
|
||||
new AddBurdenEffect(self, 1));
|
||||
new AddBurdenEffect(self, 1) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Add a burden";
|
||||
}
|
||||
});
|
||||
possibleEffects.add(
|
||||
new ChooseAndDiscardCardsFromHandEffect(action, game.getGameState().getCurrentPlayerId(), false, 3));
|
||||
new ChooseAndDiscardCardsFromHandEffect(action, game.getGameState().getCurrentPlayerId(), false, 3) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Discard 3 cards from hand";
|
||||
}
|
||||
});
|
||||
action.appendEffect(
|
||||
new ChoiceEffect(action, game.getGameState().getCurrentPlayerId(), possibleEffects));
|
||||
return Collections.singletonList(action);
|
||||
|
||||
@@ -43,9 +43,19 @@ public class Card1_307 extends AbstractCompanion {
|
||||
final RequiredTriggerAction action = new RequiredTriggerAction(self);
|
||||
|
||||
List<Effect> possibleEffects = new LinkedList<Effect>();
|
||||
possibleEffects.add(new RemoveBurdenEffect(self));
|
||||
possibleEffects.add(new RemoveBurdenEffect(self) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Remove a burden";
|
||||
}
|
||||
});
|
||||
possibleEffects.add(
|
||||
new ChooseAndHealCharactersEffect(action, self.getOwner(), Filters.type(CardType.COMPANION)));
|
||||
new ChooseAndHealCharactersEffect(action, self.getOwner(), Filters.type(CardType.COMPANION)) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Heal a companion";
|
||||
}
|
||||
});
|
||||
action.appendEffect(new ChoiceEffect(action, self.getOwner(), possibleEffects));
|
||||
return Collections.singletonList(action);
|
||||
}
|
||||
|
||||
@@ -41,7 +41,12 @@ public class Card1_343 extends AbstractSite {
|
||||
final ActivateCardAction action = new ActivateCardAction(self);
|
||||
List<Effect> possibleCosts = new LinkedList<Effect>();
|
||||
possibleCosts.add(
|
||||
new ChooseAndDiscardCardsFromPlayEffect(action, playerId, 1, 1, Filters.owner(playerId), Filters.keyword(Keyword.TALE)));
|
||||
new ChooseAndDiscardCardsFromPlayEffect(action, playerId, 1, 1, Filters.owner(playerId), Filters.keyword(Keyword.TALE)) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Discard Tale from play";
|
||||
}
|
||||
});
|
||||
possibleCosts.add(
|
||||
new ChooseAndDiscardCardsFromHandEffect(action, playerId, false, 1, Filters.keyword(Keyword.TALE)) {
|
||||
@Override
|
||||
|
||||
@@ -44,12 +44,17 @@ public class Card1_344 extends AbstractSite {
|
||||
|
||||
PhysicalCard gimli = Filters.findFirstActive(game.getGameState(), game.getModifiersQuerying(), Filters.name("Gimli"));
|
||||
List<Effect> possibleEffects = new LinkedList<Effect>();
|
||||
possibleEffects.add(new ExertCharactersEffect(self, gimli));
|
||||
possibleEffects.add(new ExertCharactersEffect(self, gimli) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Exert Gimli";
|
||||
}
|
||||
});
|
||||
possibleEffects.add(
|
||||
new ChooseAndExertCharactersEffect(action, fpPlayerId, 2, 2, Filters.not(Filters.name("Gimli")), Filters.type(CardType.COMPANION)) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Exert two non-Gimli companions";
|
||||
return "Exert 2 other companions";
|
||||
}
|
||||
});
|
||||
action.appendEffect(
|
||||
|
||||
@@ -44,12 +44,17 @@ public class Card1_346 extends AbstractSite {
|
||||
|
||||
PhysicalCard frodo = Filters.findFirstActive(game.getGameState(), game.getModifiersQuerying(), Filters.name("Frodo"));
|
||||
List<Effect> possibleEffects = new LinkedList<Effect>();
|
||||
possibleEffects.add(new ExertCharactersEffect(self, frodo));
|
||||
possibleEffects.add(new ExertCharactersEffect(self, frodo) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Exert Frodo";
|
||||
}
|
||||
});
|
||||
possibleEffects.add(
|
||||
new ChooseAndExertCharactersEffect(action, fpPlayerId, 2, 2, Filters.not(Filters.name("Frodo")), Filters.type(CardType.COMPANION)) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Exert two non-Frodo companions";
|
||||
return "Exert 2 other companions";
|
||||
}
|
||||
});
|
||||
action.appendEffect(
|
||||
|
||||
@@ -41,12 +41,22 @@ public class Card1_349 extends AbstractSite {
|
||||
if (Filters.filter(game.getGameState().getHand(playerId), game.getGameState(), game.getModifiersQuerying(), Filters.name("The Balrog"), Filters.playable(game, -6)).size() > 0) {
|
||||
// Play from hand
|
||||
possibleEffects.add(
|
||||
new ChooseAndPlayCardFromHandEffect(playerId, game.getGameState().getHand(playerId), -6, Filters.name("The Balrog")));
|
||||
new ChooseAndPlayCardFromHandEffect(playerId, game.getGameState().getHand(playerId), -6, Filters.name("The Balrog")) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Play The Balrog from hand";
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Play from deck
|
||||
possibleEffects.add(
|
||||
new ChooseAndPlayCardFromDeckEffect(playerId, -6, Filters.name("The Balrog")));
|
||||
new ChooseAndPlayCardFromDeckEffect(playerId, -6, Filters.name("The Balrog")) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Play The Balrog from deck";
|
||||
}
|
||||
});
|
||||
|
||||
action.appendEffect(
|
||||
new ChoiceEffect(action, playerId, possibleEffects));
|
||||
|
||||
@@ -47,9 +47,19 @@ public class Card1_206 extends AbstractPermanent {
|
||||
final RequiredTriggerAction action = new RequiredTriggerAction(self);
|
||||
List<Effect> possibleEffects = new LinkedList<Effect>();
|
||||
possibleEffects.add(
|
||||
new ChooseAndExertCharactersEffect(action, self.getOwner(), 1, 1, Filters.race(Race.NAZGUL)));
|
||||
new ChooseAndExertCharactersEffect(action, self.getOwner(), 1, 1, Filters.race(Race.NAZGUL)) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Exert Nazgul";
|
||||
}
|
||||
});
|
||||
possibleEffects.add(
|
||||
new DiscardCardsFromPlayEffect(self, self));
|
||||
new DiscardCardsFromPlayEffect(self, self) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Exert this condition";
|
||||
}
|
||||
});
|
||||
|
||||
action.appendEffect(
|
||||
new ChoiceEffect(action, self.getOwner(), possibleEffects));
|
||||
|
||||
@@ -45,9 +45,19 @@ public class Card1_214 extends AbstractResponseOldEvent {
|
||||
PlayEventAction action = new PlayEventAction(self);
|
||||
List<Effect> possibleEffects = new LinkedList<Effect>();
|
||||
possibleEffects.add(
|
||||
new ExertCharactersEffect(self, game.getGameState().getRingBearer(game.getGameState().getCurrentPlayerId())));
|
||||
new ExertCharactersEffect(self, game.getGameState().getRingBearer(game.getGameState().getCurrentPlayerId())) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Exert the Ring-bearer";
|
||||
}
|
||||
});
|
||||
possibleEffects.add(
|
||||
new AddBurdenEffect(self, 1));
|
||||
new AddBurdenEffect(self, 1) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Add a burden";
|
||||
}
|
||||
});
|
||||
action.appendEffect(
|
||||
new ChoiceEffect(action, game.getGameState().getCurrentPlayerId(), possibleEffects));
|
||||
return Collections.singletonList(action);
|
||||
|
||||
@@ -56,9 +56,19 @@ public class Card2_015 extends AbstractOldEvent {
|
||||
action.insertEffect(new DrawCardEffect(opponentId, 2));
|
||||
List<Effect> possibleEffects = new LinkedList<Effect>();
|
||||
possibleEffects.add(
|
||||
new ChooseAndDiscardCardsFromHandEffect(action, opponentId, false, 2, 2, Filters.side(Side.SHADOW)));
|
||||
new ChooseAndDiscardCardsFromHandEffect(action, opponentId, false, 2, 2, Filters.side(Side.SHADOW)) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Discard 2 Shadow cards";
|
||||
}
|
||||
});
|
||||
possibleEffects.add(
|
||||
new SkipNextShadowPhaseChooseableEffect(self, opponentId));
|
||||
new SkipNextShadowPhaseChooseableEffect(self, opponentId) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Skip next Shadow phase";
|
||||
}
|
||||
});
|
||||
action.appendEffect(
|
||||
new ChoiceEffect(action, opponentId, possibleEffects));
|
||||
}
|
||||
|
||||
@@ -56,9 +56,19 @@ public class Card2_089 extends AbstractMinion {
|
||||
ActivateCardAction action = new ActivateCardAction(self);
|
||||
List<Effect> possibleCosts = new LinkedList<Effect>();
|
||||
possibleCosts.add(
|
||||
new ExertCharactersEffect(self, self));
|
||||
new ExertCharactersEffect(self, self) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Exert this minion";
|
||||
}
|
||||
});
|
||||
possibleCosts.add(
|
||||
new DiscardCardsFromPlayEffect(self, self));
|
||||
new DiscardCardsFromPlayEffect(self, self) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Discard this minion";
|
||||
}
|
||||
});
|
||||
action.appendCost(
|
||||
new ChoiceEffect(action, playerId, possibleCosts));
|
||||
action.appendEffect(
|
||||
|
||||
@@ -64,9 +64,19 @@ public class Card2_097 extends AbstractAttachable {
|
||||
ActivateCardAction action = new ActivateCardAction(self);
|
||||
List<Effect> possibleCosts = new LinkedList<Effect>();
|
||||
possibleCosts.add(
|
||||
new ExertCharactersEffect(self, self.getAttachedTo()));
|
||||
new ExertCharactersEffect(self, self.getAttachedTo()) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Exert Bilbo";
|
||||
}
|
||||
});
|
||||
possibleCosts.add(
|
||||
new DiscardCardsFromPlayEffect(self, self));
|
||||
new DiscardCardsFromPlayEffect(self, self) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Discard this condition";
|
||||
}
|
||||
});
|
||||
action.appendCost(
|
||||
new ChoiceEffect(action, playerId, possibleCosts));
|
||||
action.appendEffect(
|
||||
|
||||
@@ -58,9 +58,19 @@ public class Card2_108 extends AbstractAttachable {
|
||||
|
||||
List<Effect> possibleEffects = new LinkedList<Effect>();
|
||||
possibleEffects.add(
|
||||
new TakeOffTheOneRingEffect());
|
||||
new TakeOffTheOneRingEffect() {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Take off The One Ring";
|
||||
}
|
||||
});
|
||||
possibleEffects.add(
|
||||
new CancelRingBearerAndNazgulSkirmish(self));
|
||||
new CancelRingBearerAndNazgulSkirmish(self) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Cancel a skirmish";
|
||||
}
|
||||
});
|
||||
|
||||
action.appendEffect(
|
||||
new ChoiceEffect(action, playerId, possibleEffects));
|
||||
|
||||
@@ -57,9 +57,19 @@ public class Card3_019 extends AbstractAttachable {
|
||||
final ActivateCardAction action = new ActivateCardAction(self);
|
||||
List<Effect> possibleCosts = new LinkedList<Effect>();
|
||||
possibleCosts.add(
|
||||
new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Filters.name("Aragorn")));
|
||||
new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Filters.name("Aragorn")) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Exert Aragorn";
|
||||
}
|
||||
});
|
||||
possibleCosts.add(
|
||||
new ChooseAndDiscardCardsFromHandEffect(action, playerId, false, 2, 2, Filters.any));
|
||||
new ChooseAndDiscardCardsFromHandEffect(action, playerId, false, 2, 2, Filters.any) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Discard 2 cards from hand";
|
||||
}
|
||||
});
|
||||
action.appendCost(
|
||||
new ChoiceEffect(action, playerId, possibleCosts));
|
||||
action.appendEffect(
|
||||
|
||||
@@ -45,9 +45,19 @@ public class Card3_083 extends AbstractPermanent {
|
||||
RequiredTriggerAction action = new RequiredTriggerAction(self);
|
||||
List<Effect> possibleEffects = new LinkedList<Effect>();
|
||||
possibleEffects.add(
|
||||
new ChooseAndExertCharactersEffect(action, self.getOwner(), 1, 1, Filters.race(Race.NAZGUL)));
|
||||
new ChooseAndExertCharactersEffect(action, self.getOwner(), 1, 1, Filters.race(Race.NAZGUL)) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Exert a Nazgul";
|
||||
}
|
||||
});
|
||||
possibleEffects.add(
|
||||
new DiscardCardsFromPlayEffect(self, self));
|
||||
new DiscardCardsFromPlayEffect(self, self) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Discard this condition";
|
||||
}
|
||||
});
|
||||
action.appendEffect(
|
||||
new ChoiceEffect(action, self.getOwner(), possibleEffects));
|
||||
return Collections.singletonList(action);
|
||||
|
||||
@@ -57,9 +57,19 @@ public class Card4_019 extends AbstractPermanent {
|
||||
|
||||
List<Effect> possibleCosts = new LinkedList<Effect>();
|
||||
possibleCosts.add(
|
||||
new RemoveTwilightEffect(2));
|
||||
new RemoveTwilightEffect(2) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Remove (2)";
|
||||
}
|
||||
});
|
||||
possibleCosts.add(
|
||||
new DiscardCardsFromPlayEffect(self, self));
|
||||
new DiscardCardsFromPlayEffect(self, self) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Discard this possession";
|
||||
}
|
||||
});
|
||||
|
||||
action.appendCost(
|
||||
new ChoiceEffect(action, playerId, possibleCosts));
|
||||
|
||||
@@ -56,9 +56,19 @@ public class Card4_041 extends AbstractAttachableFPPossession {
|
||||
|
||||
List<Effect> possibleCosts = new LinkedList<Effect>();
|
||||
possibleCosts.add(
|
||||
new ChooseAndDiscardCardsFromPlayEffect(action, playerId, 1, 1, Filters.type(CardType.CONDITION), Filters.culture(Culture.DWARVEN)));
|
||||
new ChooseAndDiscardCardsFromPlayEffect(action, playerId, 1, 1, Filters.type(CardType.CONDITION), Filters.culture(Culture.DWARVEN)) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Discard DWARVEN condition";
|
||||
}
|
||||
});
|
||||
possibleCosts.add(
|
||||
new ChooseAndDiscardStackedCardsEffect(action, playerId, 1, 1, Filters.and(Filters.type(CardType.CONDITION), Filters.culture(Culture.DWARVEN)), Filters.any));
|
||||
new ChooseAndDiscardStackedCardsEffect(action, playerId, 1, 1, Filters.and(Filters.type(CardType.CONDITION), Filters.culture(Culture.DWARVEN)), Filters.any) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Discard a card stacked on a DWARVEN condition";
|
||||
}
|
||||
});
|
||||
|
||||
action.appendCost(
|
||||
new ChoiceEffect(action, playerId, possibleCosts));
|
||||
|
||||
@@ -53,9 +53,19 @@ public class Card4_064 extends AbstractAttachableFPPossession {
|
||||
|
||||
List<Effect> possibleCosts = new LinkedList<Effect>();
|
||||
possibleCosts.add(
|
||||
new ExertCharactersEffect(self, self.getAttachedTo()));
|
||||
new ExertCharactersEffect(self, self.getAttachedTo()) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Exert bearer";
|
||||
}
|
||||
});
|
||||
possibleCosts.add(
|
||||
new ChooseAndDiscardCardsFromHandEffect(action, playerId, false, 2));
|
||||
new ChooseAndDiscardCardsFromHandEffect(action, playerId, false, 2) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Discard 2 cards from hand";
|
||||
}
|
||||
});
|
||||
|
||||
action.appendCost(
|
||||
new ChoiceEffect(action, playerId, possibleCosts));
|
||||
|
||||
@@ -51,9 +51,19 @@ public class Card4_079 extends AbstractResponseOldEvent {
|
||||
|
||||
List<Effect> possibleEffects = new LinkedList<Effect>();
|
||||
possibleEffects.add(
|
||||
new LiberateASiteEffect(self));
|
||||
new LiberateASiteEffect(self) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Liberate a site";
|
||||
}
|
||||
});
|
||||
possibleEffects.add(
|
||||
new ChooseAndWoundCharactersEffect(action, playerId, 1, 1, Filters.type(CardType.MINION)));
|
||||
new ChooseAndWoundCharactersEffect(action, playerId, 1, 1, Filters.type(CardType.MINION)) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Wound a minion";
|
||||
}
|
||||
});
|
||||
|
||||
action.appendEffect(
|
||||
new ChoiceEffect(action, playerId, possibleEffects));
|
||||
|
||||
@@ -44,9 +44,19 @@ public class Card4_084 extends AbstractOldEvent {
|
||||
|
||||
List<Effect> possibleEffects = new LinkedList<Effect>();
|
||||
possibleEffects.add(
|
||||
new LiberateASiteEffect(self));
|
||||
new LiberateASiteEffect(self) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Liberate a site";
|
||||
}
|
||||
});
|
||||
possibleEffects.add(
|
||||
new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Filters.type(CardType.MINION)));
|
||||
new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Filters.type(CardType.MINION)) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Exert a minion";
|
||||
}
|
||||
});
|
||||
|
||||
action.appendEffect(
|
||||
new ChoiceEffect(action, playerId, possibleEffects));
|
||||
|
||||
@@ -43,9 +43,19 @@ public class Card4_279 extends AbstractOldEvent {
|
||||
|
||||
List<Effect> possibleEffects = new LinkedList<Effect>();
|
||||
possibleEffects.add(
|
||||
new LiberateASiteEffect(self));
|
||||
new LiberateASiteEffect(self) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Liberate a site";
|
||||
}
|
||||
});
|
||||
possibleEffects.add(
|
||||
new DrawCardEffect(playerId, 3));
|
||||
new DrawCardEffect(playerId, 3) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Draw 3 cards";
|
||||
}
|
||||
});
|
||||
|
||||
action.appendEffect(
|
||||
new ChoiceEffect(action, playerId, possibleEffects));
|
||||
|
||||
@@ -39,9 +39,19 @@ public class Card5_006 extends AbstractEvent {
|
||||
|
||||
List<Effect> possibleEffects = new LinkedList<Effect>();
|
||||
possibleEffects.add(
|
||||
new DrawCardEffect(playerId, 1));
|
||||
new DrawCardEffect(playerId, 1) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Draw a card";
|
||||
}
|
||||
});
|
||||
possibleEffects.add(
|
||||
new ChooseAndPlayCardFromDiscardEffect(playerId, game.getGameState().getDiscard(playerId), Culture.DWARVEN, CardType.CONDITION));
|
||||
new ChooseAndPlayCardFromDiscardEffect(playerId, game.getGameState().getDiscard(playerId), Culture.DWARVEN, CardType.CONDITION) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Play a DWARVEN condition from your discard pile";
|
||||
}
|
||||
});
|
||||
|
||||
action.appendEffect(
|
||||
new ChoiceEffect(action, playerId, possibleEffects));
|
||||
|
||||
@@ -38,9 +38,19 @@ public class Card5_014 extends AbstractEvent {
|
||||
PlayEventAction action = new PlayEventAction(self);
|
||||
List<Effect> possibleEffects = new LinkedList<Effect>();
|
||||
possibleEffects.add(
|
||||
new ChooseAndHealCharactersEffect(action, playerId, 1, 1, CardType.COMPANION));
|
||||
new ChooseAndHealCharactersEffect(action, playerId, 1, 1, CardType.COMPANION) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Heal a companion";
|
||||
}
|
||||
});
|
||||
possibleEffects.add(
|
||||
new LiberateASiteEffect(self));
|
||||
new LiberateASiteEffect(self) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Liberate a site";
|
||||
}
|
||||
});
|
||||
|
||||
action.appendEffect(
|
||||
new ChoiceEffect(action, playerId, possibleEffects));
|
||||
|
||||
@@ -49,9 +49,19 @@ public class Card5_017 extends AbstractCompanion {
|
||||
ActivateCardAction action = new ActivateCardAction(self);
|
||||
List<Effect> possibleCosts = new LinkedList<Effect>();
|
||||
possibleCosts.add(
|
||||
new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Race.HOBBIT, Filters.unboundCompanion));
|
||||
new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Race.HOBBIT, Filters.unboundCompanion) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Exert an unbound Hobbit";
|
||||
}
|
||||
});
|
||||
possibleCosts.add(
|
||||
new ChooseAndDiscardCardsFromHandEffect(action, playerId, false, 2));
|
||||
new ChooseAndDiscardCardsFromHandEffect(action, playerId, false, 2) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Discard 2 cards from hand";
|
||||
}
|
||||
});
|
||||
action.appendCost(
|
||||
new ChoiceEffect(action, playerId, possibleCosts));
|
||||
action.appendEffect(
|
||||
|
||||
@@ -48,9 +48,19 @@ public class Card5_019 extends AbstractCompanion {
|
||||
ActivateCardAction action = new ActivateCardAction(self);
|
||||
List<Effect> possibleCosts = new LinkedList<Effect>();
|
||||
possibleCosts.add(
|
||||
new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Race.HOBBIT, Filters.unboundCompanion));
|
||||
new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Race.HOBBIT, Filters.unboundCompanion) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Exert an unbound Hobbit";
|
||||
}
|
||||
});
|
||||
possibleCosts.add(
|
||||
new ChooseAndDiscardCardsFromHandEffect(action, playerId, false, 2));
|
||||
new ChooseAndDiscardCardsFromHandEffect(action, playerId, false, 2) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Discard 2 cards from hand";
|
||||
}
|
||||
});
|
||||
action.appendCost(
|
||||
new ChoiceEffect(action, playerId, possibleCosts));
|
||||
action.appendEffect(
|
||||
|
||||
@@ -46,12 +46,22 @@ public class Card5_030 extends AbstractEvent {
|
||||
PlayEventAction action = new PlayEventAction(self);
|
||||
if (game.getGameState().getCurrentPhase() == Phase.SHADOW) {
|
||||
List<Effect> possibleEffects = new LinkedList<Effect>();
|
||||
possibleEffects.add(
|
||||
new ChooseAndPlayCardFromDeckEffect(playerId, Filters.name("Gollum")) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Play Gollum from your draw deck";
|
||||
}
|
||||
});
|
||||
if (PlayConditions.canPlayFromDiscard(playerId, game, Filters.name("Gollum"))) {
|
||||
possibleEffects.add(
|
||||
new ChooseAndPlayCardFromDiscardEffect(playerId, game.getGameState().getDiscard(playerId), Filters.name("Gollum")));
|
||||
new ChooseAndPlayCardFromDiscardEffect(playerId, game.getGameState().getDiscard(playerId), Filters.name("Gollum")) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Play Gollum from your discard pile";
|
||||
}
|
||||
});
|
||||
}
|
||||
possibleEffects.add(
|
||||
new ChooseAndPlayCardFromDeckEffect(playerId, Filters.name("Gollum")));
|
||||
action.appendEffect(
|
||||
new ChoiceEffect(action, playerId, possibleEffects));
|
||||
} else {
|
||||
|
||||
@@ -58,12 +58,17 @@ public class Card6_001 extends AbstractPermanent {
|
||||
final ActivateCardAction action = new ActivateCardAction(self);
|
||||
List<Effect> possibleCosts = new LinkedList<Effect>();
|
||||
possibleCosts.add(
|
||||
new DiscardCardsFromPlayEffect(self, self));
|
||||
new DiscardCardsFromPlayEffect(self, self) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Discard this condition";
|
||||
}
|
||||
});
|
||||
possibleCosts.add(
|
||||
new RemoveTokenEffect(self, self, Token.DUNLAND) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Remove DUNLAND token";
|
||||
return "Remove a DUNLAND token from here";
|
||||
}
|
||||
});
|
||||
action.appendCost(
|
||||
|
||||
@@ -55,12 +55,17 @@ public class Card6_010 extends AbstractPermanent {
|
||||
final ActivateCardAction action = new ActivateCardAction(self);
|
||||
List<Effect> possibleCosts = new LinkedList<Effect>();
|
||||
possibleCosts.add(
|
||||
new DiscardCardsFromPlayEffect(self, self));
|
||||
new DiscardCardsFromPlayEffect(self, self) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Discard this condition";
|
||||
}
|
||||
});
|
||||
possibleCosts.add(
|
||||
new RemoveTokenEffect(self, self, Token.DWARVEN) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Remove DWARVEN token from here";
|
||||
return "Remove a DWARVEN token from here";
|
||||
}
|
||||
});
|
||||
action.appendCost(
|
||||
|
||||
@@ -54,9 +54,19 @@ public class Card6_012 extends AbstractPermanent {
|
||||
ActivateCardAction action = new ActivateCardAction(self);
|
||||
List<Effect> possibleCosts = new LinkedList<Effect>();
|
||||
possibleCosts.add(
|
||||
new DiscardCardsFromPlayEffect(self, self));
|
||||
new DiscardCardsFromPlayEffect(self, self) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Discard this condition";
|
||||
}
|
||||
});
|
||||
possibleCosts.add(
|
||||
new RemoveTokenEffect(self, self, Token.ELVEN));
|
||||
new RemoveTokenEffect(self, self, Token.ELVEN) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Remove an ELVEN token from here";
|
||||
}
|
||||
});
|
||||
action.appendCost(
|
||||
new ChoiceEffect(action, playerId, possibleCosts));
|
||||
action.appendEffect(
|
||||
|
||||
@@ -54,9 +54,19 @@ public class Card6_052 extends AbstractPermanent {
|
||||
ActivateCardAction action = new ActivateCardAction(self);
|
||||
List<Effect> possibleCosts = new LinkedList<Effect>();
|
||||
possibleCosts.add(
|
||||
new DiscardCardsFromPlayEffect(self, self));
|
||||
new DiscardCardsFromPlayEffect(self, self) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Discard this condition";
|
||||
}
|
||||
});
|
||||
possibleCosts.add(
|
||||
new RemoveTokenEffect(self, self, Token.GONDOR));
|
||||
new RemoveTokenEffect(self, self, Token.GONDOR) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Remove a GONDOR token from here";
|
||||
}
|
||||
});
|
||||
action.appendCost(
|
||||
new ChoiceEffect(action, playerId, possibleCosts));
|
||||
action.appendEffect(
|
||||
|
||||
Reference in New Issue
Block a user