Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/server/scripts/EasternKingdoms/ZulGurub/instance_zulgurub.cpp b/src/server/scripts/EasternKingdoms/ZulGurub/instance_zulgurub.cpp
- index 21169f56bc..b13aa8b514 100644
- --- a/src/server/scripts/EasternKingdoms/ZulGurub/instance_zulgurub.cpp
- +++ b/src/server/scripts/EasternKingdoms/ZulGurub/instance_zulgurub.cpp
- @@ -55,6 +55,21 @@ class instance_zulgurub : public InstanceMapScript
- return false;
- }
- + bool SetBossState(uint32 type, EncounterState state) override
- + {
- + if (!InstanceScript::SetBossState(type, state))
- + return false;
- +
- + if (type == DATA_MARLI && state == FAIL /* or whatever boss state you want */)
- + {
- + for (auto && guid : eggs)
- + {
- + if (GameObject* go = instance->GetGameObject(guid))
- + go->Respawn();
- + }
- + }
- + }
- +
- void OnCreatureCreate(Creature* creature) override
- {
- switch (creature->GetEntry())
- @@ -93,6 +108,9 @@ class instance_zulgurub : public InstanceMapScript
- else
- go->RemoveFlag(GAMEOBJECT_FLAGS, GO_FLAG_NOT_SELECTABLE);
- break;
- + case 179985:
- + eggs.push_back(go->GetGUID());
- + break;
- default:
- break;
- }
- @@ -135,6 +153,7 @@ class instance_zulgurub : public InstanceMapScript
- ObjectGuid _vilebranchSpeakerGUID;
- ObjectGuid _arlokkGUID;
- ObjectGuid _goGongOfBethekkGUID;
- + GuidVector eggs;
- };
- InstanceScript* GetInstanceScript(InstanceMap* map) const override
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement