mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-23 13:46:24 +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)
|
||||
|
||||
Reference in New Issue
Block a user