mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-28 08:06:23 +00:00
fix(Scripts/Ulduar): Open the chamber door on Kologarn's death. (#11085)
This commit is contained in:
@@ -242,17 +242,19 @@ public:
|
|||||||
summons.DespawnAll();
|
summons.DespawnAll();
|
||||||
|
|
||||||
if (m_pInstance)
|
if (m_pInstance)
|
||||||
|
{
|
||||||
m_pInstance->SetData(TYPE_KOLOGARN, NOT_STARTED);
|
m_pInstance->SetData(TYPE_KOLOGARN, NOT_STARTED);
|
||||||
|
|
||||||
|
// Open the door inside Kologarn chamber
|
||||||
|
if (GameObject* door = m_pInstance->instance->GetGameObject(m_pInstance->GetGuidData(GO_KOLOGARN_DOORS)))
|
||||||
|
door->SetGoState(GO_STATE_ACTIVE);
|
||||||
|
}
|
||||||
|
|
||||||
AttachLeftArm();
|
AttachLeftArm();
|
||||||
AttachRightArm();
|
AttachRightArm();
|
||||||
|
|
||||||
// Reset breath on pull
|
// Reset breath on pull
|
||||||
breathReady = false;
|
breathReady = false;
|
||||||
|
|
||||||
// Open the door inside Kologarn chamber
|
|
||||||
if (GameObject* door = me->FindNearestGameObject(GO_KOLOGARN_DOORS, 100.0f))
|
|
||||||
door->SetGoState(GO_STATE_ACTIVE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void DoAction(int32 param) override
|
void DoAction(int32 param) override
|
||||||
@@ -301,6 +303,13 @@ public:
|
|||||||
|
|
||||||
Talk(SAY_DEATH);
|
Talk(SAY_DEATH);
|
||||||
|
|
||||||
|
if (m_pInstance)
|
||||||
|
{
|
||||||
|
// Open the door inside Kologarn chamber
|
||||||
|
if (GameObject* door = m_pInstance->instance->GetGameObject(m_pInstance->GetGuidData(GO_KOLOGARN_DOORS)))
|
||||||
|
door->SetGoState(GO_STATE_ACTIVE);
|
||||||
|
}
|
||||||
|
|
||||||
if (GameObject* bridge = me->FindNearestGameObject(GO_KOLOGARN_BRIDGE, 100))
|
if (GameObject* bridge = me->FindNearestGameObject(GO_KOLOGARN_BRIDGE, 100))
|
||||||
bridge->SetGoState(GO_STATE_READY);
|
bridge->SetGoState(GO_STATE_READY);
|
||||||
|
|
||||||
@@ -384,8 +393,13 @@ public:
|
|||||||
me->setActive(true);
|
me->setActive(true);
|
||||||
|
|
||||||
// Close the door inside Kologarn chamber
|
// Close the door inside Kologarn chamber
|
||||||
if (GameObject* door = me->FindNearestGameObject(GO_KOLOGARN_DOORS, 100.0f))
|
if (m_pInstance)
|
||||||
door->SetGoState(GO_STATE_READY);
|
{
|
||||||
|
if (GameObject* door = m_pInstance->instance->GetGameObject(m_pInstance->GetGuidData(GO_KOLOGARN_DOORS)))
|
||||||
|
{
|
||||||
|
door->SetGoState(GO_STATE_READY);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateAI(uint32 diff) override
|
void UpdateAI(uint32 diff) override
|
||||||
|
|||||||
Reference in New Issue
Block a user