- "Frodo" cannot be part of starting fellowship now (unless a Ring-bearer, or the special non-ring-bearer Frodo).
This commit is contained in:
@@ -45,7 +45,8 @@ public class PlayerPlaysStartingFellowshipGameProcess implements GameProcess {
|
||||
public boolean accepts(GameState gameState, ModifiersQuerying modifiersQuerying, PhysicalCard physicalCard) {
|
||||
int twilightCost = modifiersQuerying.getTwilightCost(gameState, physicalCard, false);
|
||||
return gameState.getTwilightPool() + twilightCost <= 4
|
||||
&& physicalCard.getBlueprint().checkPlayRequirements(playerId, game, physicalCard, 0, 0, false, false);
|
||||
&& physicalCard.getBlueprint().checkPlayRequirements(playerId, game, physicalCard, 0, 0, false, false)
|
||||
&& modifiersQuerying.canPlayAction(gameState, playerId, physicalCard.getBlueprint().getPlayCardAction(playerId, game, physicalCard, 0, false));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ import com.gempukku.lotro.logic.decisions.AwaitingDecision;
|
||||
import com.gempukku.lotro.logic.decisions.AwaitingDecisionType;
|
||||
import com.gempukku.lotro.logic.decisions.DecisionResultInvalidException;
|
||||
import com.gempukku.lotro.logic.vo.LotroDeck;
|
||||
import static junit.framework.Assert.assertEquals;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.util.Arrays;
|
||||
@@ -15,8 +16,6 @@ import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import static junit.framework.Assert.assertEquals;
|
||||
|
||||
public class IndividualCardAtTest extends AbstractAtTest {
|
||||
@Test
|
||||
public void dwarvenAxeDoesNotFreeze() throws DecisionResultInvalidException {
|
||||
@@ -429,4 +428,20 @@ public class IndividualCardAtTest extends AbstractAtTest {
|
||||
// Should not cancel skirmish (since it's a ring-bearer)
|
||||
assertEquals(Phase.SKIRMISH, _game.getGameState().getCurrentPhase());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void frodoCantBePlayedInStartingFellowship() throws DecisionResultInvalidException {
|
||||
Map<String, LotroDeck> decks = new HashMap<String, LotroDeck>();
|
||||
final LotroDeck p1Deck = createSimplestDeck();
|
||||
p1Deck.setRingBearer("13_156");
|
||||
p1Deck.addCard("4_301");
|
||||
decks.put(P1, p1Deck);
|
||||
|
||||
decks.put(P2, createSimplestDeck());
|
||||
|
||||
initializeGameWithDecks(decks);
|
||||
|
||||
AwaitingDecision decision = _userFeedback.getAwaitingDecision(P1);
|
||||
assertEquals(AwaitingDecisionType.MULTIPLE_CHOICE, decision.getDecisionType());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<b>12 Feb. 2012</b>
|
||||
- "Tower Troll" now exerts itself twice to use the activated ability.
|
||||
- "Aragorn, Wingfoot" now allows you to choose how many unbound hobbits you wish to spot.
|
||||
- "Frodo" cannot be part of starting fellowship now (unless a Ring-bearer, or the special non-ring-bearer Frodo).
|
||||
|
||||
<b>11 Feb. 2012</b>
|
||||
- "Hurried Barrows" now gives the bonus to companions only if they are mounted.
|
||||
|
||||
Reference in New Issue
Block a user