fix(Core/Player): Allow sharing completed in log quests. Send push to party on failed reason seasonal (#4880)

This commit is contained in:
AbraKabastard
2021-04-08 18:07:55 -03:00
committed by GitHub
parent 5dc5867f5c
commit a2c034dc48
2 changed files with 6 additions and 6 deletions

View File

@@ -16787,12 +16787,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;
// pussywizard: in pool and not currently available (wintergrasp weekly, dalaran weekly) - can't share
// 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;
}
@@ -17685,7 +17685,7 @@ void Player::SendQuestConfirmAccept(const Quest* quest, Player* pReceiver)
}
}
void Player::SendPushToPartyResponse(Player* player, uint8 msg)
void Player::SendPushToPartyResponse(Player const* player, uint8 msg) const
{
if (player)
{