Core/Pooling: Quest pooling rewrite
Port From (https://github.com/TrinityCore/TrinityCore/commit/51fbda4223442635a35d3225c0797d0151ea7051)
This commit is contained in:
@@ -292,12 +292,10 @@ namespace Game
|
||||
|
||||
questCompletionNPC.QuestID = questID;
|
||||
|
||||
var creatures = Global.ObjectMgr.GetCreatureQuestInvolvedRelationReverseBounds(questID);
|
||||
foreach (var id in creatures)
|
||||
foreach (var id in Global.ObjectMgr.GetCreatureQuestInvolvedRelationReverseBounds(questID))
|
||||
questCompletionNPC.NPCs.Add(id);
|
||||
|
||||
var gos = Global.ObjectMgr.GetGOQuestInvolvedRelationReverseBounds(questID);
|
||||
foreach (var id in gos)
|
||||
foreach (var id in Global.ObjectMgr.GetGOQuestInvolvedRelationReverseBounds(questID))
|
||||
questCompletionNPC.NPCs.Add(id | 0x80000000); // GO mask
|
||||
|
||||
response.QuestCompletionNPCs.Add(questCompletionNPC);
|
||||
|
||||
@@ -605,7 +605,7 @@ namespace Game
|
||||
}
|
||||
|
||||
// in pool and not currently available (wintergrasp weekly, dalaran weekly) - can't share
|
||||
if (Global.PoolMgr.IsPartOfAPool<Quest>(packet.QuestID) != 0 && !Global.PoolMgr.IsSpawnedObject<Quest>(packet.QuestID))
|
||||
if (Global.QuestPoolMgr.IsQuestActive(packet.QuestID))
|
||||
{
|
||||
sender.SendPushToPartyResponse(sender, QuestPushReason.NotDaily);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user