mirror of
https://github.com/ZhengPeiRu21/mod-individual-progression
synced 2025-11-29 15:38:19 +08:00
fix vashj bridge access (#852)
now properly checks all 5 bosses and unlocks the console if all 5 are dead
This commit is contained in:
@@ -12,8 +12,7 @@ enum SSCMisc
|
||||
{
|
||||
GO_LADY_VASHJ_BRIDGE_CONSOLE = 184568,
|
||||
MAP_SSC = 548,
|
||||
DATA_LURKER = 1,
|
||||
DATA_VASHJ = 6
|
||||
DATA_VASHJ = 5
|
||||
};
|
||||
|
||||
class GlobalSerpentshrineScript : public GlobalScript
|
||||
@@ -27,19 +26,13 @@ public:
|
||||
{
|
||||
if (InstanceScript* instance = instanceMap->GetInstanceScript())
|
||||
{
|
||||
uint32 bossCount = instance->GetEncounterCount() - 3;
|
||||
for (uint8 id = 0; id <= bossCount; ++id)
|
||||
for (uint8 id = 0; id <= 4; ++id) // check boss data id 0-4
|
||||
{
|
||||
if (id == bossId && newState == DONE)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (id == DATA_LURKER)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (instance->GetBossState(id) != DONE)
|
||||
{
|
||||
return true;
|
||||
@@ -65,16 +58,6 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void OnLoadSpellCustomAttr(SpellInfo* spellInfo) override
|
||||
{
|
||||
switch (spellInfo->Id)
|
||||
{
|
||||
case 38236: // Tidalvess - Spawn Spitfire Totem
|
||||
spellInfo->Effects[EFFECT_0].BasePoints = 25000;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void OnBeforeSetBossState(uint32 bossId, EncounterState newState, EncounterState /*oldState*/, Map* map) override
|
||||
{
|
||||
if (sConfigMgr->GetOption<int>("IndividualProgression.SerpentshrineCavern.RequireAllBosses", 1))
|
||||
|
||||
Reference in New Issue
Block a user