Core/Loot: Implemented automatic flagging of tracking quests from loot

Port From (https://github.com/TrinityCore/TrinityCore/commit/d913e38cbab9521c80d826417093d22b2c4a1c1a)
This commit is contained in:
Hondacrx
2025-05-19 18:56:02 -04:00
parent f62d303ec7
commit de59110fe8
7 changed files with 150 additions and 17 deletions
+4 -1
View File
@@ -6104,6 +6104,9 @@ namespace Game.Entities
case LootItemType.Currency:
ModifyCurrency(item.itemid, (int)item.count, CurrencyGainSource.Loot);
break;
case LootItemType.TrackingQuest:
// nothing to do, already handled
break;
}
if (ffaItem != null)
@@ -6212,7 +6215,7 @@ namespace Game.Entities
SendPacket(packet);
// add 'this' player as one of the players that are looting 'loot'
loot.OnLootOpened(GetMap(), GetGUID());
loot.OnLootOpened(GetMap(), this);
m_AELootView[loot.GetGUID()] = loot;
if (loot.loot_type == LootType.Corpse && !loot.GetOwnerGUID().IsItem())