Housing: publish no-house state before tutorial start
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include "DatabaseEnv.h"
|
||||
#include "HousingDefines.h"
|
||||
#include "HousingMgr.h"
|
||||
#include "HousingPackets.h"
|
||||
#include "HousingTutorialPackets.h"
|
||||
#include "Log.h"
|
||||
#include "ObjectMgr.h"
|
||||
@@ -108,6 +109,13 @@ namespace Housing
|
||||
return;
|
||||
}
|
||||
|
||||
// The tutorial starts before the player owns a house. Publish that native
|
||||
// state before accepting the quest and casting the retail transition spell;
|
||||
// otherwise the dashboard keeps its previous house context and rejects Start Tutorial.
|
||||
WorldPackets::Housing::HouseStatusResponse houseStatus;
|
||||
houseStatus.Result = HOUSING_RESULT_HOUSE_NOT_FOUND;
|
||||
session->SendPacket(houseStatus.Write());
|
||||
|
||||
if (Quest const* quest = sObjectMgr->GetQuestTemplate(HousingTutorialQuestId))
|
||||
{
|
||||
if (player->GetQuestStatus(HousingTutorialQuestId) == QUEST_STATUS_NONE && player->CanAddQuest(quest, true))
|
||||
|
||||
Reference in New Issue
Block a user