Core/Quests: Drop unneeded QuestSpecialFlags
Port From (https://github.com/TrinityCore/TrinityCore/commit/dd8aed421a48225b0e60c677969d1fc133954279)
This commit is contained in:
@@ -447,7 +447,7 @@ namespace Game
|
||||
|
||||
if (quest != null)
|
||||
{
|
||||
if (quest.HasSpecialFlag(QuestSpecialFlags.Timed))
|
||||
if (quest.LimitTime != 0)
|
||||
GetPlayer().RemoveTimedQuest(questId);
|
||||
|
||||
if (quest.HasFlag(QuestFlags.Pvp))
|
||||
@@ -566,7 +566,7 @@ namespace Game
|
||||
}
|
||||
else
|
||||
{
|
||||
if (quest.HasSpecialFlag(QuestSpecialFlags.Deliver)) // some items required
|
||||
if (quest.HasQuestObjectiveType(QuestObjectiveType.Item)) // some items required
|
||||
GetPlayer().PlayerTalkClass.SendQuestGiverRequestItems(quest, packet.QuestGiverGUID, GetPlayer().CanRewardQuest(quest, false), false);
|
||||
else // no items required
|
||||
GetPlayer().PlayerTalkClass.SendQuestGiverOfferReward(quest, packet.QuestGiverGUID, true);
|
||||
|
||||
Reference in New Issue
Block a user