mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-15 18:00:27 +00:00
reduce target calculation overhead
This commit is contained in:
@@ -11,8 +11,8 @@ Unit* CurrentTargetValue::Get()
|
||||
return nullptr;
|
||||
|
||||
Unit* unit = ObjectAccessor::GetUnit(*bot, selection);
|
||||
if (unit && !bot->IsWithinLOSInMap(unit))
|
||||
return nullptr;
|
||||
// if (unit && !bot->IsWithinLOSInMap(unit))
|
||||
// return nullptr;
|
||||
|
||||
return unit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user