mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-14 17:49:10 +00:00
fix(Core/Player): Allow sharing completed in log quests. Send push to party on failed reason seasonal (#4880)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -1535,7 +1535,7 @@ public:
|
||||
void SendQuestTimerFailed(uint32 quest_id);
|
||||
void SendCanTakeQuestResponse(uint32 msg) const;
|
||||
void SendQuestConfirmAccept(Quest const* quest, Player* pReceiver);
|
||||
void SendPushToPartyResponse(Player* player, uint8 msg);
|
||||
void SendPushToPartyResponse(Player const* player, uint8 msg) const;
|
||||
void SendQuestUpdateAddItem(Quest const* quest, uint32 item_idx, uint16 count);
|
||||
void SendQuestUpdateAddCreatureOrGo(Quest const* quest, uint64 guid, uint32 creatureOrGO_idx, uint16 old_count, uint16 add_count);
|
||||
void SendQuestUpdateAddPlayer(Quest const* quest, uint16 old_count, uint16 add_count);
|
||||
|
||||
Reference in New Issue
Block a user