Fixing some of the choice effects.

This commit is contained in:
marcins78@gmail.com
2011-09-21 09:38:23 +00:00
parent 130fa8544f
commit a66e3aa4f7
6 changed files with 26 additions and 5 deletions

View File

@@ -48,6 +48,11 @@ public class Card1_059 extends AbstractPermanent {
possibleCosts.add(
new ChooseActiveCardEffect(playerId, "Choose Dwarf to exert", Filters.race(Race.DWARF)) {
@Override
public String getText(LotroGame game) {
return "Exert Dwarf";
}
@Override
protected void cardSelected(PhysicalCard dwarf) {
action.addCost(new ExertCharacterEffect(playerId, dwarf));
@@ -58,6 +63,11 @@ public class Card1_059 extends AbstractPermanent {
possibleCosts.add(
new ChooseActiveCardEffect(playerId, "Choose Elf to exert", Filters.race(Race.ELF)) {
@Override
public String getText(LotroGame game) {
return "Exert Elf";
}
@Override
protected void cardSelected(PhysicalCard elf) {
action.addCost(new ExertCharacterEffect(playerId, elf));

View File

@@ -47,7 +47,7 @@ public class Card1_093 extends AbstractEvent {
final PhysicalCard aragorn = Filters.findFirstActive(game.getGameState(), game.getModifiersQuerying(), Filters.name("Aragorn"));
if (arwen != null) {
action.addCost(
possibleEffects.add(
new ExertCharacterEffect(playerId, arwen) {
@Override
public EffectResult[] playEffect(LotroGame game) {
@@ -60,7 +60,7 @@ public class Card1_093 extends AbstractEvent {
});
}
if (aragorn != null) {
action.addCost(
possibleEffects.add(
new ExertCharacterEffect(playerId, aragorn) {
@Override
public EffectResult[] playEffect(LotroGame game) {

View File

@@ -44,7 +44,7 @@ public class Card1_100 extends AbstractPermanent {
final PhysicalCard aragorn = Filters.findFirstActive(game.getGameState(), game.getModifiersQuerying(), Filters.name("Aragorn"));
if (arwen != null) {
action.addCost(
possibleEffects.add(
new ExertCharacterEffect(playerId, arwen) {
@Override
public EffectResult[] playEffect(LotroGame game) {
@@ -56,7 +56,7 @@ public class Card1_100 extends AbstractPermanent {
});
}
if (aragorn != null) {
action.addCost(
possibleEffects.add(
new ExertCharacterEffect(playerId, aragorn) {
@Override
public EffectResult[] playEffect(LotroGame game) {

View File

@@ -45,6 +45,11 @@ public class Card1_344 extends AbstractSite {
possibleEffects.add(new ExertCharacterEffect(game.getGameState().getCurrentPlayerId(), gimli));
possibleEffects.add(
new ChooseActiveCardsEffect(fpPlayerId, "Choose two companions to exert", 2, 2, Filters.not(Filters.name("Gimli")), Filters.type(CardType.COMPANION), Filters.canExert()) {
@Override
public String getText(LotroGame game) {
return "Exert two non-Gimli companions";
}
@Override
protected void cardsSelected(List<PhysicalCard> cards) {
action.addEffect(new ExertCharacterEffect(game.getGameState().getCurrentPlayerId(), Filters.in(cards)));

View File

@@ -47,7 +47,7 @@ public class Card1_346 extends AbstractSite {
new ChooseActiveCardsEffect(fpPlayerId, "Choose two companions to exert", 2, 2, Filters.not(Filters.name("Frodo")), Filters.type(CardType.COMPANION), Filters.canExert()) {
@Override
public String getText(LotroGame game) {
return "Exert two other companions";
return "Exert two non-Frodo companions";
}
@Override

View File

@@ -53,6 +53,12 @@ public class Card1_349 extends AbstractSite {
&& gameState.getTwilightPool() >= (modifiersQuerying.getTwilightCost(gameState, physicalCard) - 6);
}
}) {
@Override
public String getText(LotroGame game) {
return "Play card from hand";
}
@Override
protected void cardsSelected(List<PhysicalCard> selectedCards) {
PhysicalCard balrog = selectedCards.get(0);