Core/Loot: Send DungeonEncounter id in SMSG_ITEM_PUSH_RESULT

This commit is contained in:
Shauren
2022-10-04 00:19:38 +02:00
parent 46e0056196
commit 5a516fb654
9 changed files with 36 additions and 11 deletions
@@ -25,6 +25,7 @@
#include "GridNotifiersImpl.h"
#include "InstanceScript.h"
#include "Log.h"
#include "Loot.h"
#include "MotionMaster.h"
#include "ObjectAccessor.h"
#include "PhasingHandler.h"
@@ -520,7 +521,13 @@ void BossAI::_JustDied()
summons.DespawnAll();
scheduler.CancelAll();
if (instance)
{
if (me->m_loot)
if (DungeonEncounterEntry const* dungeonEncounter = instance->GetBossDungeonEncounter(_bossId))
me->m_loot->SetDungeonEncounterId(dungeonEncounter->ID);
instance->SetBossState(_bossId, DONE);
}
}
void BossAI::_JustReachedHome()