mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-21 20:56:23 +00:00
fix(Core/Visibility): Fix visibility issue at sight limit (#22830)
This commit is contained in:
@@ -62,7 +62,8 @@ void VisibleNotifier::SendToSelf()
|
||||
for (VisibleWorldObjectsMap::iterator itr = visibleWorldObjects->begin(); itr != visibleWorldObjects->end();)
|
||||
{
|
||||
WorldObject* obj = itr->second;
|
||||
if (!i_player.IsWorldObjectOutOfSightRange(obj))
|
||||
if (!i_player.IsWorldObjectOutOfSightRange(obj)
|
||||
|| i_player.CanSeeOrDetect(obj, false, true))
|
||||
{
|
||||
++itr;
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user