diff options
author | Matan Shukry <matanshukry@gmail.com> | 2021-01-29 11:50:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-29 10:50:02 +0100 |
commit | db6eb694656c58a817a965e2f5c85874e9c92d12 (patch) | |
tree | 34a0bec2ebf23ae6522e61d9b6bade821aefc94c /src/server/game/Quests/QuestDef.h | |
parent | d4ad9870105ca149cf6f41563ea26d5faf246fa9 (diff) |
Core/Quests: Automatically add quests with AUTO_PUSH flag to player (#25938)
* Removed check for world quests on criteria tree reset
* Quests are currently filtered by their tag to only allow untagged or tag == 0 quests (other types are unsupported)
Diffstat (limited to 'src/server/game/Quests/QuestDef.h')
-rw-r--r-- | src/server/game/Quests/QuestDef.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/game/Quests/QuestDef.h b/src/server/game/Quests/QuestDef.h index 945a874f4b4..2fb49a684e5 100644 --- a/src/server/game/Quests/QuestDef.h +++ b/src/server/game/Quests/QuestDef.h @@ -437,6 +437,12 @@ class TC_GAME_API Quest bool HasSpecialFlag(uint32 flag) const { return (_specialFlags & flag) != 0; } void SetSpecialFlag(uint32 flag) { _specialFlags |= flag; } + bool IsAutoPush() const { return HasFlagEx(QUEST_FLAGS_EX_AUTO_PUSH); } + bool IsWorldQuest() const { return HasFlagEx(QUEST_FLAGS_EX_IS_WORLD_QUEST); } + + // Possibly deprecated flag + bool IsUnavailable() const { return HasFlag(QUEST_FLAGS_UNAVAILABLE); } + // table data accessors: uint32 GetQuestId() const { return _id; } uint32 GetQuestType() const { return _type; } |