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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;