If one side of the skirmish is missing, no more phase actions can be played
This commit is contained in:
@@ -2,6 +2,7 @@ package com.gempukku.lotro.logic.timing.processes.turn.general;
|
|||||||
|
|
||||||
import com.gempukku.lotro.common.Phase;
|
import com.gempukku.lotro.common.Phase;
|
||||||
import com.gempukku.lotro.game.state.LotroGame;
|
import com.gempukku.lotro.game.state.LotroGame;
|
||||||
|
import com.gempukku.lotro.game.state.Skirmish;
|
||||||
import com.gempukku.lotro.logic.PlayOrder;
|
import com.gempukku.lotro.logic.PlayOrder;
|
||||||
import com.gempukku.lotro.logic.decisions.CardActionSelectionDecision;
|
import com.gempukku.lotro.logic.decisions.CardActionSelectionDecision;
|
||||||
import com.gempukku.lotro.logic.decisions.DecisionResultInvalidException;
|
import com.gempukku.lotro.logic.decisions.DecisionResultInvalidException;
|
||||||
@@ -29,9 +30,12 @@ public class PlayersPlayPhaseActionsInOrderGameProcess implements GameProcess {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void process() {
|
public void process() {
|
||||||
if (_game.getGameState().getCurrentPhase() == Phase.SKIRMISH
|
if (_game.getGameState().getCurrentPhase() == Phase.SKIRMISH) {
|
||||||
&& _game.getGameState().getSkirmish().isCancelled()) {
|
Skirmish skirmish = _game.getGameState().getSkirmish();
|
||||||
_nextProcess = _followingGameProcess;
|
// If the skirmish is cancelled or one side of the skirmish is missing, no more phase actions can be played
|
||||||
|
if (_game.getGameState().getSkirmish().isCancelled()
|
||||||
|
|| skirmish.getFellowshipCharacter() == null || skirmish.getShadowCharacters().size() == 0)
|
||||||
|
_nextProcess = _followingGameProcess;
|
||||||
} else {
|
} else {
|
||||||
String playerId = _playOrder.getNextPlayer();
|
String playerId = _playOrder.getNextPlayer();
|
||||||
GatherPlayableActionsVisitor visitor = new GatherPlayableActionsVisitor(_game, playerId);
|
GatherPlayableActionsVisitor visitor = new GatherPlayableActionsVisitor(_game, playerId);
|
||||||
|
|||||||
Reference in New Issue
Block a user