Core/Loot: Send DungeonEncounter id in SMSG_ITEM_PUSH_RESULT
Port From (https://github.com/TrinityCore/TrinityCore/commit/5a516fb6549e460e68b45005a17ec1b6217fefa5)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user