Skip to content

Commit

Permalink
Alar Credit Quest Condition
Browse files Browse the repository at this point in the history
If you have quest 10946 and has aura 42090 from quest item, after kill Alar - you will get quest credit.
Closes #241
  • Loading branch information
Ulduar2 authored and killerwife committed Nov 8, 2017
1 parent c8720f4 commit c9ca0c0
Showing 1 changed file with 9 additions and 0 deletions.
Expand Up @@ -56,6 +56,9 @@ enum
PHASE_REBIRTH = 2,
PHASE_TWO = 3,
PHASE_DIVE_BOMB = 4,

QUEST_RUSE_ASHTONGUE = 10946, // Quest 10946 for attunement in Black Temple.
SPELL_ASHTONGUE_RUSE = 42090, // Player can complete 10946 quest, only if has aura 42090. If kill Alar without this aura - quest not completed.
};

struct EventLocation
Expand Down Expand Up @@ -144,6 +147,12 @@ struct boss_alarAI : public ScriptedAI
{
if (m_pInstance)
m_pInstance->SetData(TYPE_ALAR, DONE);

std::list<Player*> playerList;
GetPlayerListWithEntryInWorld(playerList, m_creature, 150.0f);
for (auto& player : playerList)
if (player->GetQuestStatus(QUEST_RUSE_ASHTONGUE) == QUEST_STATUS_INCOMPLETE && player->HasAura(SPELL_ASHTONGUE_RUSE))
player->AreaExploredOrEventHappens(QUEST_RUSE_ASHTONGUE);
}

void JustSummoned(Creature* pSummoned) override
Expand Down

0 comments on commit c9ca0c0

Please sign in to comment.