mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
fix(Core/Script): 'Battle at Valhalas' quests done automatically (#7036)
* fix(Core/Script): 'Battle at Valhalas' quests done automatically Battle at Valhalas series of quests, get to automatically complete Closes #6753 * Refactoring * Refactoring * Refactoring PlayerUpdates.cpp Co-authored-by: IntelligentQuantum <IntelligentQuantum@ProtonMail.Com> * Refactoring PlayerQuest.cpp Co-authored-by: IntelligentQuantum <IntelligentQuantum@ProtonMail.Com> * Update src/server/scripts/Northrend/zone_icecrown.cpp Co-authored-by: IntelligentQuantum <IntelligentQuantum@ProtonMail.Com>
This commit is contained in:
@@ -84,6 +84,20 @@ void Player::PrepareQuestMenu(ObjectGuid guid)
|
||||
}
|
||||
}
|
||||
|
||||
bool Player::HasQuest(uint32 questId) const
|
||||
{
|
||||
for (uint8 i = 0; i < MAX_QUEST_LOG_SIZE; ++i)
|
||||
{
|
||||
uint32 questid = GetQuestSlotQuestId(i);
|
||||
if (questid == questId)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void Player::SendPreparedQuest(ObjectGuid guid)
|
||||
{
|
||||
QuestMenu& questMenu = PlayerTalkClass->GetQuestMenu();
|
||||
|
||||
Reference in New Issue
Block a user