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
@@ -456,9 +456,9 @@ namespace Game.AI
return source.FindNearestCreature(entry, maxSearchRange, alive);
}
public static GameObject GetClosestGameObjectWithEntry(WorldObject source, uint entry, float maxSearchRange)
public static GameObject GetClosestGameObjectWithEntry(WorldObject source, uint entry, float maxSearchRange, bool spawnedOnly = true)
{
return source.FindNearestGameObject(entry, maxSearchRange);
return source.FindNearestGameObject(entry, maxSearchRange, spawnedOnly);
}
public bool HealthBelowPct(int pct) { return me.HealthBelowPct(pct); }