Scripts/Obsidian Sanctum: Fix portals not being visible
Port From (https://github.com/TrinityCore/TrinityCore/commit/d561a691220c2c0856f63ff6cbcd4d0af8c761d5)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user