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