fix(Core/LFG): Lock Deathknights from the dungeonfinder until they complete their starting zone (#22270)

This commit is contained in:
Tereneckla
2025-06-05 14:43:35 +00:00
committed by GitHub
parent 2a93e7d410
commit fe2d1150b3
4 changed files with 44 additions and 9 deletions

View File

@@ -472,10 +472,32 @@ public:
}
};
enum KingVarianWrynn : uint32
{
// Deathknight Starting Zone End
QUEST_WHERE_KINGS_WALK = 13188,
};
class npc_king_varian_wrynn : public CreatureScript
{
public:
npc_king_varian_wrynn() : CreatureScript("npc_king_varian_wrynn") { }
bool OnQuestReward(Player* player, Creature* /*creature*/, Quest const* quest, uint32 /*item*/) override
{
if (quest->GetQuestId() == QUEST_WHERE_KINGS_WALK)
sLFGMgr->InitializeLockedDungeons(player);
return true;
}
};
void AddSC_stormwind_city()
{
new npc_tyrion();
new npc_tyrion_spybot();
new npc_lord_gregor_lescovar();
new npc_marzon_silent_blade();
new npc_king_varian_wrynn();
}