Skip to content

Commit

Permalink
Fix quest The Challenge.
Browse files Browse the repository at this point in the history
Closes #2229

Closes #2341
  • Loading branch information
ratkosrb committed Dec 23, 2023
1 parent d8669a2 commit dd123f7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ enum
NPC_SHADOWFORGE_CITIZEN = 8902,
NPC_GRIMSTONE = 10096,
NPC_THELDREN = 16059,
NPC_THELDREN_KILL_CREDIT = 16166,

GO_ARENA1 = 161525,
GO_ARENA2 = 161522,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,14 @@ struct instance_blackrock_depths : ScriptedInstance
case DATA_THELDREN:
if (uiData == DONE)
{
// Give kill credit for quest The Challenge (9015)
Map::PlayerList const& players = instance->GetPlayers();
for (const auto& itr : players)
{
if (Player* pPlayer = itr.getSource())
pPlayer->KilledMonsterCredit(NPC_THELDREN_KILL_CREDIT);
}

// Spawn "Arena Spoils" chest with sick loot
DoRespawnGameObject(m_uiArenaSpoilsGUID);
}
Expand Down

0 comments on commit dd123f7

Please sign in to comment.