fix(Core/PlayerQuest): make timed quests failable (#18940)

This commit is contained in:
sudlud 2024-06-04 18:30:10 +02:00 committed by GitHub
parent defed64bc3
commit 3913618f87
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -888,7 +888,7 @@ void Player::FailQuest(uint32 questId)
{
QuestStatus qStatus = GetQuestStatus(questId);
// xinef: if quest is marked as failed, dont do it again
if (qStatus != QUEST_STATUS_INCOMPLETE)
if ((qStatus != QUEST_STATUS_INCOMPLETE) && (!quest->HasSpecialFlag(QUEST_SPECIAL_FLAGS_TIMED)))
return;
SetQuestStatus(questId, QUEST_STATUS_FAILED);