Skip to content

Commit

Permalink
NPCBots: Fix build 1
Browse files Browse the repository at this point in the history
  • Loading branch information
trickerer committed Dec 23, 2023
1 parent 0b9816d commit 38fc22d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/server/game/Grids/Notifiers/GridNotifiers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ 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())
continue;

//npcbot:
if (obj->IsNPCBotOrPet() && i_player.GetDistance2d(obj) < i_player.GetVisibilityRange() && i_player.CanSeeOrDetect(obj, false, true))
continue;
//end npcbot
}

// pussywizard: static transports are removed only in RemovePlayerFromMap and here if can no longer detect (eg. phase changed)
Expand Down

0 comments on commit 38fc22d

Please sign in to comment.