mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Moving Repeatability check inside QC check.
This commit is contained in:
@@ -427,11 +427,6 @@ public class Gui_WinLose extends JFrame implements NewConstants {
|
||||
if (model.quest.getRewards().willGiveBooster(wonMatch)) {
|
||||
giveBooster();
|
||||
}
|
||||
|
||||
// Set repeatability
|
||||
if(!model.qc.getRepeatable()) {
|
||||
model.quest.addCompletedChallenge(model.qc.getId());
|
||||
}
|
||||
|
||||
// Award credits
|
||||
if (wonMatch) {
|
||||
@@ -461,6 +456,11 @@ public class Gui_WinLose extends JFrame implements NewConstants {
|
||||
|
||||
// Rewards from QuestAssignment
|
||||
if (wonMatch && model.qc != null) {
|
||||
// Set repeatability
|
||||
if(!model.qc.getRepeatable()) {
|
||||
model.quest.addCompletedChallenge(model.qc.getId());
|
||||
}
|
||||
|
||||
model.quest.addChallengesPlayed();
|
||||
|
||||
List<CardPrinted> challengeRewardCards = model.qc.getCardRewardList();
|
||||
|
||||
Reference in New Issue
Block a user