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