mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-15 05:25:08 +00:00
fix(Scripts/Karazhan): Fixed locking Shad of Aran entrance door. (#15450)
Fixes #15434
This commit is contained in:
@@ -134,7 +134,12 @@ public:
|
|||||||
|
|
||||||
// Not in progress
|
// Not in progress
|
||||||
instance->SetData(DATA_ARAN, NOT_STARTED);
|
instance->SetData(DATA_ARAN, NOT_STARTED);
|
||||||
instance->HandleGameObject(instance->GetGuidData(DATA_GO_LIBRARY_DOOR), true);
|
|
||||||
|
if (GameObject* libraryDoor = instance->instance->GetGameObject(instance->GetGuidData(DATA_GO_LIBRARY_DOOR)))
|
||||||
|
{
|
||||||
|
libraryDoor->SetGoState(GO_STATE_ACTIVE);
|
||||||
|
libraryDoor->RemoveGameObjectFlag(GO_FLAG_NOT_SELECTABLE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void KilledUnit(Unit* /*victim*/) override
|
void KilledUnit(Unit* /*victim*/) override
|
||||||
@@ -147,7 +152,12 @@ public:
|
|||||||
Talk(SAY_DEATH);
|
Talk(SAY_DEATH);
|
||||||
|
|
||||||
instance->SetData(DATA_ARAN, DONE);
|
instance->SetData(DATA_ARAN, DONE);
|
||||||
instance->HandleGameObject(instance->GetGuidData(DATA_GO_LIBRARY_DOOR), true);
|
|
||||||
|
if (GameObject* libraryDoor = instance->instance->GetGameObject(instance->GetGuidData(DATA_GO_LIBRARY_DOOR)))
|
||||||
|
{
|
||||||
|
libraryDoor->SetGoState(GO_STATE_ACTIVE);
|
||||||
|
libraryDoor->RemoveGameObjectFlag(GO_FLAG_NOT_SELECTABLE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void JustEngagedWith(Unit* /*who*/) override
|
void JustEngagedWith(Unit* /*who*/) override
|
||||||
@@ -155,7 +165,13 @@ public:
|
|||||||
Talk(SAY_AGGRO);
|
Talk(SAY_AGGRO);
|
||||||
|
|
||||||
instance->SetData(DATA_ARAN, IN_PROGRESS);
|
instance->SetData(DATA_ARAN, IN_PROGRESS);
|
||||||
instance->HandleGameObject(instance->GetGuidData(DATA_GO_LIBRARY_DOOR), false);
|
|
||||||
|
if (GameObject* libraryDoor = instance->instance->GetGameObject(instance->GetGuidData(DATA_GO_LIBRARY_DOOR)))
|
||||||
|
{
|
||||||
|
libraryDoor->SetGoState(GO_STATE_READY);
|
||||||
|
libraryDoor->SetGameObjectFlag(GO_FLAG_NOT_SELECTABLE);
|
||||||
|
}
|
||||||
|
|
||||||
DoZoneInCombat();
|
DoZoneInCombat();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -203,7 +219,11 @@ public:
|
|||||||
{
|
{
|
||||||
if (CloseDoorTimer <= diff)
|
if (CloseDoorTimer <= diff)
|
||||||
{
|
{
|
||||||
instance->HandleGameObject(instance->GetGuidData(DATA_GO_LIBRARY_DOOR), false);
|
if (GameObject* libraryDoor = instance->instance->GetGameObject(instance->GetGuidData(DATA_GO_LIBRARY_DOOR)))
|
||||||
|
{
|
||||||
|
libraryDoor->SetGoState(GO_STATE_READY);
|
||||||
|
libraryDoor->SetGameObjectFlag(GO_FLAG_NOT_SELECTABLE);
|
||||||
|
}
|
||||||
CloseDoorTimer = 0;
|
CloseDoorTimer = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user