Skip to content

Commit

Permalink
SSC: Allow immediate access to Vashj
Browse files Browse the repository at this point in the history
  • Loading branch information
insunaa committed Jan 14, 2025
1 parent 06190fb commit 6304da2
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ void instance_serpentshrine_cavern::SetData(uint32 uiType, uint32 uiData)
case TYPE_MOROGRIM_EVENT:
m_auiEncounter[uiType] = uiData;
if (uiData == DONE)
EngageBossConsole(uiType, 0);
EngageBossConsole(uiType, nullptr);
if (uiData == SPECIAL)
EngageBridgeConsole();
break;
Expand Down Expand Up @@ -323,10 +323,15 @@ void instance_serpentshrine_cavern::SpawnFishCorpses()

void instance_serpentshrine_cavern::EngageBridgeConsole(GameObject* _console)
{
#ifdef PRENERF_2_3
if(m_auiEncounter[TYPE_HYDROSS_EVENT] == SPECIAL && m_auiEncounter[TYPE_THELURKER_EVENT] == SPECIAL && m_auiEncounter[TYPE_LEOTHERAS_EVENT] == SPECIAL
&& m_auiEncounter[TYPE_KARATHRESS_EVENT] == SPECIAL && m_auiEncounter[TYPE_MOROGRIM_EVENT] == SPECIAL)
#endif
if(GameObject* console = _console ? _console : instance->GetGameObject(m_goEntryGuidStore[GO_CONSOLE_VASHJ]))
{
console->RemoveFlag(GAMEOBJECT_FLAGS, GO_FLAG_LOCKED);
console->RemoveFlag(GAMEOBJECT_FLAGS, GO_FLAG_NO_INTERACT);
}
}

uint32 EncounterTypeFromGOEntry(uint32 goEntry)
Expand Down Expand Up @@ -375,10 +380,15 @@ void instance_serpentshrine_cavern::EngageBossConsole(uint32 uiType, GameObject*
}
console = instance->GetGameObject(m_goEntryGuidStore[goEntry]);
}
#ifdef PRENERF_2_3
if (m_auiEncounter[uiType] == DONE)
{
console->RemoveFlag(GAMEOBJECT_FLAGS, GO_FLAG_LOCKED);
console->RemoveFlag(GAMEOBJECT_FLAGS, GO_FLAG_NO_INTERACT);
}
else if(m_auiEncounter[uiType] == SPECIAL)
console->SetGoState(GO_STATE_ACTIVE);
#endif
}

bool GOUse_go_ssc_boss_consoles(Player* /*pPlayer*/, GameObject* pGo)
Expand Down

0 comments on commit 6304da2

Please sign in to comment.