fix(Core/Visibility): Fix visibility issue at sight limit (#22830)

This commit is contained in:
Takenbacon
2025-09-07 10:17:10 -07:00
committed by GitHub
parent 96f8149e0e
commit f191d71193

View File

@@ -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;