Core/Loot: Send DungeonEncounter id in SMSG_ITEM_PUSH_RESULT

Port From (https://github.com/TrinityCore/TrinityCore/commit/5a516fb6549e460e68b45005a17ec1b6217fefa5)
This commit is contained in:
hondacrx
2022-10-04 19:59:15 -04:00
parent 9d6b144884
commit 87fdd30072
6 changed files with 37 additions and 10 deletions
+9
View File
@@ -547,7 +547,16 @@ namespace Game.AI
summons.DespawnAll();
_scheduler.CancelAll();
if (instance != null)
{
if (me.loot != null)
{
DungeonEncounterRecord dungeonEncounter = instance.GetBossDungeonEncounter(_bossId);
if (dungeonEncounter != null)
me.loot.SetDungeonEncounterId(dungeonEncounter.Id);
}
instance.SetBossState(_bossId, EncounterState.Done);
}
}
public void _JustEngagedWith(Unit who)