fix(Core/Loot): Fixed some chests inside dungeons not being bound only to participants. (#10995)

This commit is contained in:
UltraNix 2022-03-18 22:33:04 +01:00 committed by GitHub
parent c11a96b775
commit 68891ccd74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 78 additions and 8 deletions

View file

@ -160,7 +160,17 @@ public:
case DATA_EREGOS:
m_auiEncounter[DATA_EREGOS] = data;
if (data == DONE)
{
DoRespawnGameObject(EregosCacheGUID, 7 * DAY);
if (GameObject* cache = instance->GetGameObject(EregosCacheGUID))
{
if (Creature* eregos = instance->GetCreature(uiEregosGUID))
{
cache->SetLootRecipient(eregos);
}
}
}
break;
case DATA_CC_COUNT:
if( CentrifugeCount < 10 )