DB/Creature: The instance_encounters extra flag (CREATURE_FLAG_EXTRA_DUNGEON_BOSS) now properly propagates to all difficulty entries (not just difficulty 0).
Port From (https://github.com/TrinityCore/TrinityCore/commit/6455f1c256e566da43d55583bca9c94c0d3139ce)
This commit is contained in:
@@ -5167,7 +5167,17 @@ namespace Game
|
||||
continue;
|
||||
}
|
||||
creatureInfo.FlagsExtra |= CreatureFlagsExtra.DungeonBoss;
|
||||
break;
|
||||
for (byte diff = 0; diff < SharedConst.MaxCreatureDifficulties; ++diff)
|
||||
{
|
||||
uint diffEntry = creatureInfo.DifficultyEntry[diff];
|
||||
if (diffEntry != 0)
|
||||
{
|
||||
CreatureTemplate diffInfo = GetCreatureTemplate(diffEntry);
|
||||
if (diffInfo != null)
|
||||
diffInfo.FlagsExtra |= CreatureFlagsExtra.DungeonBoss;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case EncounterCreditType.CastSpell:
|
||||
if (!Global.SpellMgr.HasSpellInfo(creditEntry))
|
||||
|
||||
Reference in New Issue
Block a user