Added test for "The Balrog, Flame of Udun"
This commit is contained in:
@@ -3,11 +3,7 @@ package com.gempukku.lotro.at.effects;
|
|||||||
import com.gempukku.lotro.at.AbstractAtTest;
|
import com.gempukku.lotro.at.AbstractAtTest;
|
||||||
import com.gempukku.lotro.common.Phase;
|
import com.gempukku.lotro.common.Phase;
|
||||||
import com.gempukku.lotro.common.Zone;
|
import com.gempukku.lotro.common.Zone;
|
||||||
import com.gempukku.lotro.game.CardNotFoundException;
|
|
||||||
import com.gempukku.lotro.game.PhysicalCard;
|
|
||||||
import com.gempukku.lotro.game.PhysicalCardImpl;
|
import com.gempukku.lotro.game.PhysicalCardImpl;
|
||||||
import com.gempukku.lotro.game.state.actions.DefaultActionsEnvironment;
|
|
||||||
import com.gempukku.lotro.logic.decisions.DecisionResultInvalidException;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -81,4 +77,41 @@ public class PlayCardFromDiscardAtTest extends AbstractAtTest {
|
|||||||
playerDecided(P2, getCardActionId(P2, "Play The Balrog"));
|
playerDecided(P2, getCardActionId(P2, "Play The Balrog"));
|
||||||
assertNull(getCardActionId(P2, "Use The Balrog"));
|
assertNull(getCardActionId(P2, "Use The Balrog"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void flameOfUdunCanPlayCardIfEnoughTwilight() throws Exception {
|
||||||
|
initializeSimplestGame();
|
||||||
|
|
||||||
|
skipMulligans();
|
||||||
|
|
||||||
|
// Fellowship phase
|
||||||
|
playerDecided(P1, "");
|
||||||
|
|
||||||
|
// Shadow phase
|
||||||
|
playerDecided(P2, "");
|
||||||
|
|
||||||
|
// End regroup phase
|
||||||
|
assertEquals(Phase.REGROUP, _game.getGameState().getCurrentPhase());
|
||||||
|
playerDecided(P1, "");
|
||||||
|
playerDecided(P2, "");
|
||||||
|
|
||||||
|
final PhysicalCardImpl goblinRunner = createCard(P2, "1_178");
|
||||||
|
_game.getGameState().addCardToZone(_game, goblinRunner, Zone.HAND);
|
||||||
|
|
||||||
|
final PhysicalCardImpl balrog = createCard(P2, "2_52");
|
||||||
|
_game.getGameState().addCardToZone(_game, balrog, Zone.HAND);
|
||||||
|
|
||||||
|
final PhysicalCardImpl goblinSneakInDiscard = createCard(P2, "1_181");
|
||||||
|
_game.getGameState().addCardToZone(_game, goblinSneakInDiscard, Zone.DISCARD);
|
||||||
|
|
||||||
|
_game.getGameState().setTwilight(20);
|
||||||
|
|
||||||
|
// Move again
|
||||||
|
playerDecided(P1, "0");
|
||||||
|
|
||||||
|
playerDecided(P2, getCardActionId(P2, "Play Goblin Runner"));
|
||||||
|
playerDecided(P2, getCardActionId(P2, "Play The Balrog"));
|
||||||
|
playerDecided(P2, getCardActionId(P2, "Use The Balrog"));
|
||||||
|
assertEquals(Zone.SHADOW_CHARACTERS, goblinSneakInDiscard.getZone());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user