forked from Upstream/mmocore
Fixed bug #772 about trigger at the end of a quest to launch a new one.
This commit is contained in:
parent
3bc0ba515b
commit
2f17d56c40
@ -47,8 +47,6 @@ public class QuestProgress {
|
|||||||
objective++;
|
objective++;
|
||||||
objectiveProgress.close();
|
objectiveProgress.close();
|
||||||
|
|
||||||
// apply triggers
|
|
||||||
objectiveProgress.getObjective().getTriggers().forEach(trigger -> trigger.schedule(getPlayer()));
|
|
||||||
|
|
||||||
// end quest
|
// end quest
|
||||||
if (objective >= quest.getObjectives().size())
|
if (objective >= quest.getObjectives().size())
|
||||||
@ -57,6 +55,10 @@ public class QuestProgress {
|
|||||||
objectiveProgress = nextObjective().newProgress(this);
|
objectiveProgress = nextObjective().newProgress(this);
|
||||||
|
|
||||||
player.getQuestData().updateBossBar();
|
player.getQuestData().updateBossBar();
|
||||||
|
|
||||||
|
|
||||||
|
// apply triggers at the end so the quest is ended when a trigger quest start is launched.
|
||||||
|
objectiveProgress.getObjective().getTriggers().forEach(trigger -> trigger.schedule(getPlayer()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getFormattedLore() {
|
public String getFormattedLore() {
|
||||||
|
Loading…
Reference in New Issue
Block a user