Fix chasing shadows (mostly)

This commit is contained in:
KingRainbow44
2023-06-01 19:59:36 -04:00
parent 8692405363
commit 20f0cda3e0
5 changed files with 46 additions and 52 deletions

View File

@@ -53,7 +53,8 @@ public class ExecNotifyGroupLua extends QuestExecHandler {
? EventType.EVENT_QUEST_FINISH
: EventType.EVENT_QUEST_START;
scriptManager.callEvent(
new ScriptArgs(groupId, eventType, quest.getSubQuestId())
new ScriptArgs(groupId, eventType, quest.getSubQuestId(),
quest.getState() == QuestState.QUEST_STATE_FINISHED ? 1 : 0)
.setEventSource(quest.getSubQuestId()));
});