diff --git a/src/game/AI/ScriptDevAI/scripts/outland/coilfang_reservoir/underbog/underbog.cpp b/src/game/AI/ScriptDevAI/scripts/outland/coilfang_reservoir/underbog/underbog.cpp index 0511bae8ffc..b94181bb73d 100644 --- a/src/game/AI/ScriptDevAI/scripts/outland/coilfang_reservoir/underbog/underbog.cpp +++ b/src/game/AI/ScriptDevAI/scripts/outland/coilfang_reservoir/underbog/underbog.cpp @@ -23,6 +23,7 @@ EndScriptData */ #include "AI/ScriptDevAI/include/sc_common.h" #include "underbog.h" +#include "World/WorldStateDefines.h" instance_underbog::instance_underbog(Map* map) : ScriptedInstance(map), m_bGhazanSurfaced(false) { @@ -31,7 +32,13 @@ instance_underbog::instance_underbog(Map* map) : ScriptedInstance(map), m_bGhaza void instance_underbog::Initialize() { - + instance->GetVariableManager().SetVariable(WORLD_STATE_UNDERBOG_GROUP_3, urand(0, 1)); + instance->GetVariableManager().SetVariable(WORLD_STATE_UNDERBOG_GROUP_18, urand(0, 1)); + instance->GetVariableManager().SetVariable(WORLD_STATE_UNDERBOG_GROUP_19, urand(0, 1)); + instance->GetVariableManager().SetVariable(WORLD_STATE_UNDERBOG_GROUP_20, urand(0, 1)); + instance->GetVariableManager().SetVariable(WORLD_STATE_UNDERBOG_GROUP_22, urand(0, 1)); + instance->GetVariableManager().SetVariable(WORLD_STATE_UNDERBOG_GROUP_24, urand(0, 1)); + instance->GetVariableManager().SetVariable(WORLD_STATE_UNDERBOG_GROUP_25, urand(0, 1)); } void instance_underbog::SetData(uint32 type, uint32 data) diff --git a/src/game/World/WorldStateDefines.h b/src/game/World/WorldStateDefines.h index 30f06dbb7b9..46c8b5e3f56 100644 --- a/src/game/World/WorldStateDefines.h +++ b/src/game/World/WorldStateDefines.h @@ -356,6 +356,16 @@ enum WorldStateID : int32 WORLD_STATE_PROTEAN_HORROR = 5520001, // Prevents that Protean Horrors respawn WORLD_STATE_PROTEAN_NIGHTMARE = 5520002, // Prevents that Protean Nightmare respawn + // The Underbog + WORLD_STATE_UNDERBOG_GROUP_3 = 5460001, // 2 Possible group versions + WORLD_STATE_UNDERBOG_GROUP_18 = 5460002, // 2 Possible group versions + + WORLD_STATE_UNDERBOG_GROUP_19 = 5460003, // 2 Possible group versions + WORLD_STATE_UNDERBOG_GROUP_20 = 5460004, // 2 Possible group versions + WORLD_STATE_UNDERBOG_GROUP_22 = 5460005, // 2 Possible group versions + WORLD_STATE_UNDERBOG_GROUP_24 = 5460006, // 2 Possible group versions + WORLD_STATE_UNDERBOG_GROUP_25 = 5460007, // 2 Possible group versions + // The Slave Pens WORLD_STATE_NATURALIST_BITE = 5470044, // Spawns Coilfang Group after freeing Naturalist Bite