fix(Core/Loot): Fixed some chests inside dungeons not being bound only to participants. (#10995)
This commit is contained in:
parent
c11a96b775
commit
68891ccd74
11 changed files with 78 additions and 8 deletions
|
|
@ -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 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue