mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-14 01:29:07 +00:00
feat(Core/CreatureAddon): increased visibility for large creatures (#2304)
This commit is contained in:
@@ -1522,6 +1522,8 @@ float WorldObject::GetVisibilityRange() const
|
||||
{
|
||||
if (isActiveObject() && !ToPlayer())
|
||||
return MAX_VISIBILITY_DISTANCE;
|
||||
else if (IsVisibilityOverridden() && GetTypeId() == TYPEID_UNIT)
|
||||
return MAX_VISIBILITY_DISTANCE;
|
||||
else if (GetTypeId() == TYPEID_GAMEOBJECT)
|
||||
{
|
||||
if (IsInWintergrasp())
|
||||
@@ -1545,6 +1547,8 @@ float WorldObject::GetSightRange(const WorldObject* target) const
|
||||
{
|
||||
if (target->isActiveObject() && !target->ToPlayer())
|
||||
return MAX_VISIBILITY_DISTANCE;
|
||||
else if (target->IsVisibilityOverridden() && target->GetTypeId() == TYPEID_UNIT)
|
||||
return MAX_VISIBILITY_DISTANCE;
|
||||
else if (target->GetTypeId() == TYPEID_GAMEOBJECT)
|
||||
{
|
||||
if (IsInWintergrasp() && target->IsInWintergrasp())
|
||||
|
||||
Reference in New Issue
Block a user