Core/PacketIO: Fill new packet fields with data

Port From (https://github.com/TrinityCore/TrinityCore/commit/83eecaf2c40cc72c1dc42335766534eb8d227e60)
This commit is contained in:
hondacrx
2020-12-10 10:22:13 -05:00
parent 7d392baf2e
commit 87160961fa
10 changed files with 266 additions and 177 deletions
+2 -2
View File
@@ -1353,7 +1353,7 @@ namespace Game.DungeonFinding
// if we can take the quest, means that we haven't done this kind of "run", IE: First Heroic Random of Day.
if (player.CanRewardQuest(quest, false))
player.RewardQuest(quest, 0, null, false);
player.RewardQuest(quest, LootItemType.Item, 0, null, false);
else
{
done = true;
@@ -1361,7 +1361,7 @@ namespace Game.DungeonFinding
if (quest == null)
continue;
// we give reward without informing client (retail does this)
player.RewardQuest(quest, 0, null, false);
player.RewardQuest(quest, LootItemType.Item, 0, null, false);
}
// Give rewards