mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 18:36:31 +01:00
Scripts/BlackrockDepths: In the Lyceum both braziers have to be used in order to open both doors. (#30731)
* 1st * write less, do none * Update blackrock_depths.cpp
This commit is contained in:
@@ -46,11 +46,12 @@ class go_shadowforge_brazier : public GameObjectScript
|
||||
instance->SetData(TYPE_LYCEUM, DONE);
|
||||
else
|
||||
instance->SetData(TYPE_LYCEUM, IN_PROGRESS);
|
||||
// If used brazier open linked doors (North or South)
|
||||
if (me->GetGUID() == instance->GetGuidData(DATA_SF_BRAZIER_N))
|
||||
// If used both braziers, open linked doors (North and South)
|
||||
if (instance->GetData(TYPE_LYCEUM) == DONE)
|
||||
{
|
||||
instance->HandleGameObject(instance->GetGuidData(DATA_GOLEM_DOOR_N), true);
|
||||
else if (me->GetGUID() == instance->GetGuidData(DATA_SF_BRAZIER_S))
|
||||
instance->HandleGameObject(instance->GetGuidData(DATA_GOLEM_DOOR_S), true);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user