mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Scripts/Obsidian Sanctum: Fix portals not being visible
Change NearestGameObjectEntryInObjectRangeCheck to allow returning GameObject not spawned. Fixes other occurrences where a similar issue exists.
This commit is contained in:
@@ -413,7 +413,7 @@ public:
|
||||
break;
|
||||
case SAY_PRIESTESS_ALTAR_8:
|
||||
// make the gem respawn
|
||||
if (GameObject* gem = GetClosestGameObjectWithEntry(me, GO_ELUNE_GEM, 10.0f))
|
||||
if (GameObject* gem = GetClosestGameObjectWithEntry(me, GO_ELUNE_GEM, 10.0f, false))
|
||||
{
|
||||
if (gem->isSpawned())
|
||||
break;
|
||||
|
||||
@@ -251,7 +251,7 @@ struct dummy_dragonAI : public ScriptedAI
|
||||
|
||||
// using a grid search here seem to be more efficient than caching all four guids
|
||||
// in instance script and calculate range to each.
|
||||
GameObject* portal = me->FindNearestGameObject(GO_TWILIGHT_PORTAL, 50.0f);
|
||||
GameObject* portal = me->FindNearestGameObject(GO_TWILIGHT_PORTAL, 50.0f, false);
|
||||
|
||||
switch (me->GetEntry())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user