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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user