Playing site is a PlayCardEffect not a TriggeredEffect.

This commit is contained in:
marcins78@gmail.com
2011-09-18 21:20:28 +00:00
parent 3d937e1838
commit 46ffc2414d
2 changed files with 18 additions and 5 deletions

View File

@@ -6,9 +6,10 @@ import com.gempukku.lotro.game.LotroCardBlueprint;
import com.gempukku.lotro.game.PhysicalCard;
import com.gempukku.lotro.game.state.GameState;
import com.gempukku.lotro.game.state.LotroGame;
import com.gempukku.lotro.logic.effects.PlayCardEffect;
import com.gempukku.lotro.logic.timing.actions.SimpleEffectAction;
import com.gempukku.lotro.logic.timing.processes.GameProcess;
import com.gempukku.lotro.logic.timing.processes.turn.general.SimpleTriggeringGameProcess;
import com.gempukku.lotro.logic.timing.results.PlayCardResult;
import com.gempukku.lotro.logic.timing.results.WhenMoveFromResult;
import com.gempukku.lotro.logic.timing.results.WhenMoveToResult;
import com.gempukku.lotro.logic.timing.results.WhenMovesResult;
@@ -46,14 +47,25 @@ public class PlayerPlaysNextSiteIfNotThereGameProcess implements GameProcess {
gameState.addCardToZone(nextSite, Zone.ADVENTURE_PATH);
gameState.startAffecting(nextSite, _game.getModifiersEnvironment());
final PhysicalCard site = nextSite;
_nextProcess =
new SimpleTriggeringGameProcess(_game, new PlayCardResult(nextSite), "Played next site",
new SimpleTriggeringGameProcess(_game, new WhenMoveFromResult(), "Fellowship moved from",
new GameProcess() {
@Override
public void process() {
_game.getActionsEnvironment().addActionToStack(
new SimpleEffectAction(new PlayCardEffect(site), "Plays next site"));
}
@Override
public GameProcess getNextProcess() {
return new SimpleTriggeringGameProcess(_game, new WhenMoveFromResult(), "Fellowship moved from",
new SimpleTriggeringGameProcess(_game, new WhenMovesResult(), "Fellowship moves",
new MovePlayerTokenToNextSiteGameProcess(_game,
new SimpleTriggeringGameProcess(_game, new WhenMoveToResult(), "Fellowship moved to",
_afterMoveGameProcess)))));
_afterMoveGameProcess))));
}
};
} else {
_nextProcess =
new SimpleTriggeringGameProcess(_game, new WhenMoveFromResult(), "Fellowship moved from",

View File

@@ -48,3 +48,4 @@ with Filters.sameCard(...) filter.
32. Created tables do not disappear when the player closes the browser.
33. When a player stops responding during preparation time of the game, the game is not properly finished.
19. Add filtering cards to deck-builder.