Scripts/Obsidian Sanctum: Fix portals not being visible

Port From (https://github.com/TrinityCore/TrinityCore/commit/d561a691220c2c0856f63ff6cbcd4d0af8c761d5)
This commit is contained in:
hondacrx
2022-04-28 10:14:22 -04:00
parent ac388f2a1a
commit a9dcb2f2d7
4 changed files with 16 additions and 14 deletions
+2 -2
View File
@@ -1581,9 +1581,9 @@ namespace Game.Entities
return searcher.GetTarget();
}
public GameObject FindNearestGameObject(uint entry, float range)
public GameObject FindNearestGameObject(uint entry, float range, bool spawnedOnly = true)
{
var checker = new NearestGameObjectEntryInObjectRangeCheck(this, entry, range);
var checker = new NearestGameObjectEntryInObjectRangeCheck(this, entry, range, spawnedOnly);
var searcher = new GameObjectLastSearcher(this, checker);
Cell.VisitGridObjects(this, searcher, range);