- Moving Repeatability check inside QC check.

This commit is contained in:
Sol
2011-09-29 02:18:55 +00:00
parent 7771152343
commit 85cfc2ddb0

View File

@@ -428,11 +428,6 @@ public class Gui_WinLose extends JFrame implements NewConstants {
giveBooster(); giveBooster();
} }
// Set repeatability
if(!model.qc.getRepeatable()) {
model.quest.addCompletedChallenge(model.qc.getId());
}
// Award credits // Award credits
if (wonMatch) { if (wonMatch) {
long creds = model.quest.getRewards().getCreditsToAdd(model.match); long creds = model.quest.getRewards().getCreditsToAdd(model.match);
@@ -461,6 +456,11 @@ public class Gui_WinLose extends JFrame implements NewConstants {
// Rewards from QuestAssignment // Rewards from QuestAssignment
if (wonMatch && model.qc != null) { if (wonMatch && model.qc != null) {
// Set repeatability
if(!model.qc.getRepeatable()) {
model.quest.addCompletedChallenge(model.qc.getId());
}
model.quest.addChallengesPlayed(); model.quest.addChallengesPlayed();
List<CardPrinted> challengeRewardCards = model.qc.getCardRewardList(); List<CardPrinted> challengeRewardCards = model.qc.getCardRewardList();