Skip to content
Permalink
Browse files

Scripts/Deadmines: Correctly update the death encounter for creatures…

… to open doors.
  • Loading branch information...
AbraKabastard committed May 27, 2019
1 parent e930e11 commit 265390af5aab0639107b03772711ab69c332ae42
@@ -49,6 +49,10 @@ enum GameObjects

enum CreaturesIds
{
NPC_MR_SMITE = 646
NPC_RHAHK_ZOR = 644,
NPC_MR_SMITE = 646,
NPC_OVERSEER = 634,
NPC_EVOKER = 1729,
NPC_TASKMASTER = 4417
};
#endif
@@ -196,7 +196,6 @@ struct instance_deadmines : public ScriptedInstance
pDoorLever->SetUInt32Value(GAMEOBJECT_FLAGS, 4);
}


void OnCreatureCreate(Creature* pCreature, bool /*add*/)
{
switch (pCreature->GetEntry())
@@ -289,6 +288,23 @@ struct instance_deadmines : public ScriptedInstance
data << uint32(sound);
unit->SendMessageToSet(&data, false);
}

void OnCreatureDeath(Creature* pCreature)
{
switch (pCreature->GetEntry())
{
case 644:
SetData(EVENT_RHAHKZOR, DONE);
break;
case 643:
SetData(EVENT_SNEED, DONE);
break;
case 1763:
SetData(EVENT_GILNID, DONE);
default:
break;
}
}
};

InstanceData* GetInstanceData_instance_deadmines(Map* pMap)

1 comment on commit 265390a

@AbraKabastard

This comment has been minimized.

Copy link
Collaborator Author

commented on 265390a May 27, 2019

author was @talamortis

Please sign in to comment.
You can’t perform that action at this time.