- Only reset quest new cards at the beginning of the match, not the end of each game

This commit is contained in:
Sol
2013-07-08 00:15:54 +00:00
parent 7f055ddb4b
commit e081e66a13
2 changed files with 10 additions and 4 deletions

View File

@@ -12,6 +12,7 @@ import forge.game.event.GameEventAnteCardsSelected;
import forge.game.player.LobbyPlayer;
import forge.game.player.Player;
import forge.properties.ForgePreferences.FPref;
import forge.quest.QuestController;
/**
* TODO: Write javadoc for this type.
@@ -82,8 +83,14 @@ public class Match {
currentGame = new Game(players, gameType, this);
if ( getGameType() == GameType.Quest)
currentGame.subscribeToEvents(Singletons.getModel().getQuest()); // this one listens to player's mulligans ATM
if ( getGameType() == GameType.Quest) {
QuestController qc = Singletons.getModel().getQuest();
// Reset new list when the Match round starts, not when each game starts
if (this.getPlayedGames().isEmpty()) {
qc.getCards().resetNewList();
}
currentGame.subscribeToEvents(qc); // this one listens to player's mulligans ATM
}
Singletons.getControl().attachToGame(currentGame);

View File

@@ -125,7 +125,6 @@ public class QuestWinLose extends ControlWinLose {
@Override
public final boolean populateCustomPanel() {
this.getView().getBtnRestart().setVisible(false);
qData.getCards().resetNewList();
QuestController qc = Singletons.getModel().getQuest();
LobbyPlayer questPlayer = Singletons.getControl().getLobby().getQuestPlayer();
@@ -159,7 +158,7 @@ public class QuestWinLose extends ControlWinLose {
}
if (!match.isMatchOver()) {
this.getView().getBtnQuit().setText("Quit (15 Credits)");
this.getView().getBtnQuit().setText("Quit (-15 Credits)");
return isAnte;
} else {
this.getView().getBtnContinue().setVisible(false);