mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-30 17:13:47 +00:00
fix(Core/Objects): increase sight range of objects & correct general defau… (#9180)
This commit is contained in:
@@ -2503,10 +2503,20 @@ bool Creature::LoadCreaturesAddon(bool reload)
|
||||
|
||||
// Check if Creature is Large
|
||||
if (cainfo->isLarge)
|
||||
SetVisibilityDistanceOverride(true);
|
||||
{
|
||||
SetVisibilityDistanceOverride(cainfo->visibilityDistanceType);
|
||||
}
|
||||
|
||||
if (cainfo->emote != 0)
|
||||
{
|
||||
SetUInt32Value(UNIT_NPC_EMOTESTATE, cainfo->emote);
|
||||
}
|
||||
|
||||
// Check if visibility distance different
|
||||
if (cainfo->visibilityDistanceType != VisibilityDistanceType::Normal)
|
||||
{
|
||||
SetVisibilityDistanceOverride(cainfo->visibilityDistanceType);
|
||||
}
|
||||
|
||||
//Load Path
|
||||
if (cainfo->path_id != 0)
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
#define MAX_CREATURE_QUEST_ITEMS 6
|
||||
|
||||
#define MAX_EQUIPMENT_ITEMS 3
|
||||
|
||||
enum class VisibilityDistanceType : uint8;
|
||||
// TODO: Implement missing flags from TC in places that custom flags from xinef&pussywizzard use flag values.
|
||||
// EnumUtils: DESCRIBE THIS
|
||||
enum CreatureFlagsExtra : uint32
|
||||
@@ -342,6 +342,7 @@ struct CreatureAddon
|
||||
uint32 emote;
|
||||
bool isLarge;
|
||||
std::vector<uint32> auras;
|
||||
VisibilityDistanceType visibilityDistanceType;
|
||||
};
|
||||
|
||||
typedef std::unordered_map<uint32, CreatureAddon> CreatureAddonContainer;
|
||||
|
||||
Reference in New Issue
Block a user