Core/Quests: Set quest slot earlier when abandoning a quest

Port From (https://github.com/TrinityCore/TrinityCore/commit/a17944e91e2ceec693c8e286b4eabecbd08493c6)
This commit is contained in:
hondacrx
2022-02-25 17:35:18 -05:00
parent a4195763d0
commit fcc371968a
+1 -2
View File
@@ -460,6 +460,7 @@ namespace Game
}
}
GetPlayer().SetQuestSlot(packet.Entry, 0);
GetPlayer().TakeQuestSourceItem(questId, true); // remove quest src item from player
GetPlayer().AbandonQuest(questId); // remove all quest items player received before abandoning quest. Note, this does not remove normal drop items that happen to be quest requirements.
GetPlayer().RemoveActiveQuest(questId);
@@ -473,8 +474,6 @@ namespace Game
Global.ScriptMgr.OnQuestStatusChange(_player, quest, oldStatus, QuestStatus.None);
}
GetPlayer().SetQuestSlot(packet.Entry, 0);
GetPlayer().UpdateCriteria(CriteriaType.AbandonAnyQuest, 1);
}
}