Core/Quests: implemented MSG_QUEST_PUSH_RESULT notifications
- Allow to share already completed (but not rewarded) quests, restriction was unblizzlike thanks Cannix for the heads up
This commit is contained in:
1 parent
d6e7cc52a8
commit
d28be94e4a
4 files changed
+25
-19
No files matched your search
@@ -15904,12 +15904,12 @@ bool Player::CanShareQuest(uint32 quest_id) const
|
||||
QuestStatusMap::const_iterator itr = m_QuestStatus.find(quest_id);
|
||||
if (itr != m_QuestStatus.end())
|
||||
{
|
||||
if (itr->second.Status != QUEST_STATUS_INCOMPLETE)
|
||||
return false;
|
||||
|
||||
// in pool and not currently available (wintergrasp weekly, dalaran weekly) - can't share
|
||||
if (sPoolMgr->IsPartOfAPool<Quest>(quest_id) && !sPoolMgr->IsSpawnedObject<Quest>(quest_id))
|
||||
{
|
||||
SendPushToPartyResponse(this, QUEST_PARTY_MSG_CANT_BE_SHARED_TODAY);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -16849,7 +16849,7 @@ void Player::SendQuestConfirmAccept(Quest const* quest, Player* receiver) const
|
||||
receiver->GetSession()->SendPacket(packet.Write());
|
||||
}
|
||||
|
||||
void Player::SendPushToPartyResponse(Player* player, uint8 msg) const
|
||||
void Player::SendPushToPartyResponse(Player const* player, uint8 msg) const
|
||||
{
|
||||
if (player)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user