Skip to content

Commit

Permalink
Revert "NPCBots: Remove (presumably) no longer needed code"
Browse files Browse the repository at this point in the history
This reverts commit c931226.

# Conflicts:
#	src/server/game/Grids/Notifiers/GridNotifiers.cpp
  • Loading branch information
trickerer committed Dec 23, 2023
1 parent ea67386 commit 0b9816d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/server/game/Grids/Notifiers/GridNotifiers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ void VisibleNotifier::SendToSelf()

for (GuidUnorderedSet::const_iterator it = vis_guids.begin(); it != vis_guids.end(); ++it)
{
//npcbot:
if (obj->IsNPCBotOrPet() && i_player.GetDistance2d(obj) < i_player.GetVisibilityRange() && i_player.CanSeeOrDetect(obj, false, true))
continue;
//end npcbot

if (WorldObject* obj = ObjectAccessor::GetWorldObject(i_player, *it))
{
if (i_largeOnly != obj->IsVisibilityOverridden())
Expand Down

0 comments on commit 0b9816d

Please sign in to comment.