mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-15 16:26:08 +00:00
fix(Core/PlayerQuest): Introduce flag QUEST_SPECIAL_FLAGS_CAN_FAIL_IN… (#19116)
fix(Core/PlayerQuest): Introduce flag QUEST_SPECIAL_FLAGS_CAN_FAIL_IN_ANY_STATE - this allows flagging quests so that they are allowed to fail in Player::FailQuest() independant of their current state - update quest 853 accordingly as a first use case
This commit is contained in:
@@ -883,7 +883,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) && (!quest->HasSpecialFlag(QUEST_SPECIAL_FLAGS_TIMED)))
|
||||
if ((qStatus != QUEST_STATUS_INCOMPLETE) && (!quest->HasSpecialFlag(QUEST_SPECIAL_FLAGS_CAN_FAIL_IN_ANY_STATE)))
|
||||
return;
|
||||
|
||||
SetQuestStatus(questId, QUEST_STATUS_FAILED);
|
||||
|
||||
Reference in New Issue
Block a user