Core/Quests: New FlagsEx implementations

* QUEST_FLAGS_EX_REWARDS_IGNORE_CAPS
* QUEST_FLAGS_EX_NO_CREDIT_FOR_PROXY
* QUEST_FLAGS_EX_RECAST_ACCEPT_SPELL_ON_LOGIN
* QUEST_FLAGS_EX_REMOVE_ON_PERIODIC_RESET
* QUEST_FLAGS_EX_NO_ABANDON_ONCE_BEGUN
Port From (https://github.com/TrinityCore/TrinityCore/commit/0cb8965de22c5da3887b8f8b5c08b9f5034b3cc6)
This commit is contained in:
hondacrx
2023-06-13 09:11:55 -04:00
parent 5b7b6c5494
commit 264647c611
6 changed files with 147 additions and 57 deletions
+7
View File
@@ -411,6 +411,13 @@ namespace Game
if (quest != null)
{
if (quest.HasFlagEx(QuestFlagsEx.NoAbandonOnceBegun))
{
foreach (QuestObjective objective in quest.Objectives)
if (_player.IsQuestObjectiveComplete(packet.Entry, quest, objective))
return;
}
if (quest.LimitTime != 0)
GetPlayer().RemoveTimedQuest(questId);