Core/Player: Fix sight range
Closes issue 4772 --HG-- branch : trunk
This commit is contained in:
1 parent
3d33cc4f12
commit
1ec41c754b
1 file changed
+1
-1
@@ -1643,7 +1643,7 @@ float WorldObject::GetSightRange(const WorldObject* target) const
|
||||
{
|
||||
if (ToPlayer())
|
||||
{
|
||||
if (target && target->isActiveObject())
|
||||
if (target && target->isActiveObject() && !target->ToPlayer())
|
||||
return MAX_VISIBILITY_DISTANCE;
|
||||
else
|
||||
return GetMap()->GetVisibilityRange();
|
||||
|
||||
Reference in new issue
Block a user