mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Core/Instances: mark all difficulty entries as dungeon boss when encounter entry has difficulty -1
This commit is contained in:
@@ -5594,6 +5594,16 @@ void ObjectMgr::LoadInstanceEncounters()
|
||||
continue;
|
||||
}
|
||||
const_cast<CreatureTemplate*>(creatureInfo)->flags_extra |= CREATURE_FLAG_EXTRA_DUNGEON_BOSS;
|
||||
|
||||
if (dungeonEncounter->difficulty == -1)
|
||||
{
|
||||
for (uint8 i = 0; i < 3; i++)
|
||||
{
|
||||
if (CreatureTemplate const* creatureBaseInfo = GetCreatureTemplate(creditEntry))
|
||||
if (CreatureTemplate const* creatureInfo = GetCreatureTemplate(creatureBaseInfo->DifficultyEntry[i]))
|
||||
const_cast<CreatureTemplate*>(creatureInfo)->flags_extra |= CREATURE_FLAG_EXTRA_DUNGEON_BOSS;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case ENCOUNTER_CREDIT_CAST_SPELL:
|
||||
|
||||
Reference in New Issue
Block a user