Continued work on the client.
This commit is contained in:
@@ -35,7 +35,7 @@ public class PreventSubAction extends SubAction {
|
||||
_playerPreventionCost = _preventionCost.createPreventionCostForPlayer(PreventSubAction.this, nextPlayer);
|
||||
if (_playerPreventionCost.isPlayableInFull(game)) {
|
||||
appendEffect(
|
||||
new PlayoutDecisionEffect(game.getUserFeedback(), _choicePlayers.next(),
|
||||
new PlayoutDecisionEffect(game.getUserFeedback(), nextPlayer,
|
||||
new MultipleChoiceAwaitingDecision(1, "Would you like to - " + _playerPreventionCost.getText(game) + " to prevent - " + _effectToExecute.getText(game), new String[]{"Yes", "No"}) {
|
||||
@Override
|
||||
protected void validDecisionMade(int index, String result) {
|
||||
|
||||
@@ -673,7 +673,8 @@ public class GameState {
|
||||
}
|
||||
|
||||
// Current site is affecting
|
||||
startAffecting(game, getCurrentSite());
|
||||
if (_currentPhase != Phase.GAME_SETUP)
|
||||
startAffecting(game, getCurrentSite());
|
||||
|
||||
// Stacked cards on active cards are stack-affecting
|
||||
for (List<PhysicalCardImpl> stackedCards : _stacked.values())
|
||||
|
||||
@@ -25,6 +25,7 @@ public class PlayStartingFellowshipGameProcess implements GameProcess {
|
||||
|
||||
if (nextPlayer != null) {
|
||||
_game.getGameState().startPlayerTurn(nextPlayer);
|
||||
_game.getGameState().startAffectingCardsForCurrentPlayer(_game);
|
||||
|
||||
_nextProcess = new PlayerPlaysStartingFellowshipGameProcess(_game, nextPlayer, new PlayStartingFellowshipGameProcess(_game, _playOrder, _firstPlayer));
|
||||
} else {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.gempukku.lotro.logic.timing.processes.turn;
|
||||
|
||||
import com.gempukku.lotro.common.Phase;
|
||||
import com.gempukku.lotro.game.state.LotroGame;
|
||||
import com.gempukku.lotro.logic.PlayOrder;
|
||||
import com.gempukku.lotro.logic.effects.TriggeringResultEffect;
|
||||
@@ -20,6 +21,7 @@ public class StartOfTurnGameProcess implements GameProcess {
|
||||
playOrder.getNextPlayer();
|
||||
|
||||
String nextPlayer = playOrder.getNextPlayer();
|
||||
_game.getGameState().setCurrentPhase(Phase.BETWEEN_TURNS);
|
||||
_game.getGameState().startPlayerTurn(nextPlayer);
|
||||
_game.getGameState().startAffectingCardsForCurrentPlayer(_game);
|
||||
|
||||
|
||||
@@ -774,6 +774,7 @@ var GempLotrGameUI = Class.extend({
|
||||
|
||||
var tokenOverlay = $(".tokenOverlay", cardDiv);
|
||||
var cardStrengthDiv = $("<div class='cardStrength'></div>");
|
||||
cardStrengthDiv.css({display: "none"});
|
||||
tokenOverlay.append(cardStrengthDiv);
|
||||
|
||||
cardDiv.data("card", card);
|
||||
@@ -788,10 +789,7 @@ var GempLotrGameUI = Class.extend({
|
||||
var fontPerc = (size * 7) + "%";
|
||||
var borderRadius = Math.ceil(size / 5) + "px";
|
||||
|
||||
if (cardElem.data("card").strength != null)
|
||||
$(".cardStrength", cardElem).css({position: "absolute", "border-radius": borderRadius, "font-size": fontPerc, left: borderWidth * 1.4 + "px", top: maxDimension * 0.64 + "px", width: size, height: size, display: ""});
|
||||
else
|
||||
$(".cardStrength", cardElem).css({position: "absolute", "border-radius": borderRadius, "font-size": fontPerc, left: borderWidth * 1.4 + "px", top: maxDimension * 0.64 + "px", width: size, height: size, display: "none"});
|
||||
$(".cardStrength", cardElem).css({position: "absolute", "border-radius": borderRadius, "font-size": fontPerc, left: borderWidth * 1.4 + "px", top: maxDimension * 0.64 + "px", width: size, height: size});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user