Skip to content

Commit

Permalink
Fixed reject task option for quest 2122 (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
sky1683589933 authored Feb 11, 2025
1 parent d464d39 commit 7fd6fe1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import com.aionemu.gameserver.questEngine.model.QuestEnv;
import com.aionemu.gameserver.questEngine.model.QuestState;
import com.aionemu.gameserver.questEngine.model.QuestStatus;
import com.aionemu.gameserver.services.QuestService;

/**
* @author Cheatkiller
Expand Down Expand Up @@ -40,8 +39,9 @@ public boolean onDialogEvent(QuestEnv env) {

if (qs == null || qs.isStartable()) {
if (targetId == 0) {
if (dialogActionId == QUEST_ACCEPT_1) {
QuestService.startQuest(env);
if (env.getDialogActionId() == QUEST_ACCEPT_1) {
return sendQuestStartDialog(env);
} else if (env.getDialogActionId() == QUEST_REFUSE_1) {
return closeDialogWindow(env);
}
}
Expand Down

0 comments on commit 7fd6fe1

Please sign in to comment.