diff options
| author | Shauren <shauren.trinity@gmail.com> | 2023-06-10 20:31:33 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2023-06-10 20:31:33 +0200 |
| commit | 4d4c7e68935df9ca40bd5539d602ac4e779f53d5 (patch) | |
| tree | cba70a6e20bb52a33815204d40d929220ac4ab0c /src/server/game/Server | |
| parent | 39bebe6a653bdd65160aa7f9fef6501d43884079 (diff) | |
Core/Quests: Quest flag fixups
* Update flag names
* Implemented QUEST_FLAGS_COMPLETION_NO_DEATH and QUEST_FLAGS_FAIL_ON_LOGOUT
* Started using QUEST_FLAGS_COMPLETION_EVENT and QUEST_FLAGS_COMPLETION_AREA_TRIGGER instead of a custom SpeclalFlag
* Renamed Quest::IsAutoComplete to Quest::IsTurnIn to better describe what it means (a quest that can be turned in without accepting it to quest log)
* Implemented QUEST_FLAGS_UPDATE_PHASESHIFT and removed forced phaseshift updates on every quest status change
* Implemented QUEST_FLAGS_LAUNCH_GOSSIP_ACCEPT - reopens gossip menu with questgiver
Diffstat (limited to 'src/server/game/Server')
| -rw-r--r-- | src/server/game/Server/WorldSession.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/game/Server/WorldSession.cpp b/src/server/game/Server/WorldSession.cpp index 021f22abc10..c4c46c044d9 100644 --- a/src/server/game/Server/WorldSession.cpp +++ b/src/server/game/Server/WorldSession.cpp @@ -615,6 +615,8 @@ void WorldSession::LogoutPlayer(bool save) ///- Clear whisper whitelist _player->ClearWhisperWhiteList(); + _player->FailQuestsWithFlag(QUEST_FLAGS_FAIL_ON_LOGOUT); + ///- empty buyback items and save the player in the database // some save parts only correctly work in case player present in map/player_lists (pets, etc) if (save) |
