mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-13 23:43:44 +00:00
fix(Core/LFG): Lock Deathknights from the dungeonfinder until they complete their starting zone (#22270)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user