From b9a2694ea73e4cd90e63bc637b80476721b1af70 Mon Sep 17 00:00:00 2001 From: dragon <52032586+eternalcomet@users.noreply.github.com> Date: Fri, 14 Apr 2023 09:21:43 +0800 Subject: [PATCH] Fix Lua exec call (#2115) * Fix Lua exec call ## Description fix 352 should not have any slime spawns, its 353 and 351 has a single slime spawn Please carefully read the [Contributing note](https://github.com/Grasscutters/Grasscutter/blob/stable/CONTRIBUTING.md) and [Code of conduct](https://github.com/Grasscutters/Grasscutter/blob/development/CODE_OF_CONDUCT.md) before making any pull requests. ## Issues fixed by this PR ## Type of changes - [x] Bug fix - [ ] New feature - [ ] Enhancement - [ ] Documentation ## Checklist: - [x] My code follows the style guidelines of this project - [x] My pull request is unique and no other pull requests have been opened for these changes - [x] I have read the [Contributing note](https://github.com/Grasscutters/Grasscutter/blob/stable/CONTRIBUTING.md) and [Code of conduct](https://github.com/Grasscutters/Grasscutter/blob/development/CODE_OF_CONDUCT.md) - [x] I am responsible for any copyright issues with my code if it occurs in the future. * Update ExecNotifyGroupLua.java * Update ExecNotifyGroupLua.java * Update ExecNotifyGroupLua.java * new ScriptArgs(groupId, eventType, quest.getSubQuestId()) .setEventSource(String.valueOf(quest.getSubQuestId())); --- .../emu/grasscutter/game/quest/exec/ExecNotifyGroupLua.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/emu/grasscutter/game/quest/exec/ExecNotifyGroupLua.java b/src/main/java/emu/grasscutter/game/quest/exec/ExecNotifyGroupLua.java index dd296f140..3db2ce300 100644 --- a/src/main/java/emu/grasscutter/game/quest/exec/ExecNotifyGroupLua.java +++ b/src/main/java/emu/grasscutter/game/quest/exec/ExecNotifyGroupLua.java @@ -52,7 +52,7 @@ public class ExecNotifyGroupLua extends QuestExecHandler { quest.getState() == QuestState.QUEST_STATE_FINISHED ? EventType.EVENT_QUEST_FINISH : EventType.EVENT_QUEST_START; - scriptManager.callEvent(new ScriptArgs(groupId, eventType, quest.getSubQuestId())); + scriptManager.callEvent(new ScriptArgs(groupId, eventType, quest.getSubQuestId()).setEventSource(String.valueOf(quest.getSubQuestId()))); }); return true;