Fix QUEST_CONTENT_LEAVE_SCENE (#2262)

This commit is contained in:
Nazrin 2023-07-14 16:37:29 -07:00 committed by GitHub
parent d62394e35e
commit f725d9203d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,6 @@ public class ContentLeaveScene extends BaseContent {
@Override @Override
public boolean execute( public boolean execute(
GameQuest quest, QuestData.QuestContentCondition condition, String paramStr, int... params) { GameQuest quest, QuestData.QuestContentCondition condition, String paramStr, int... params) {
return quest.getOwner().getScene().getPrevScene() == params[0]; return condition.getParam()[0] == params[0];
} }
} }

View File

@ -28,6 +28,7 @@ public class HandlerPostEnterSceneReq extends PacketHandler {
if (dungeonManager != null) dungeonManager.startDungeon(); if (dungeonManager != null) dungeonManager.startDungeon();
} }
} }
questManager.queueEvent(QuestContent.QUEST_CONTENT_LEAVE_SCENE, scene.getPrevScene());
session.send(new PacketPostEnterSceneRsp(session.getPlayer())); session.send(new PacketPostEnterSceneRsp(session.getPlayer()));
} }