diff options
| author | leak <none@none> | 2010-12-05 18:04:10 +0100 |
|---|---|---|
| committer | leak <none@none> | 2010-12-05 18:04:10 +0100 |
| commit | 6fe19b5a863dd1109700c8a28dad22a8c3b7526c (patch) | |
| tree | 65b29925addfe35b78125e0527b1092798411597 /src/server/scripts/EasternKingdoms/ShadowfangKeep | |
| parent | dfa1e9532bef9e06fd20afcca800e37cb9783497 (diff) | |
Core/Scripts: Split OnCreatureCreate() and OnGameObjectCreate() into two virtual functions each.
Note to scripters: be aware that you will need to hook into the Remove functions if you want to do stuff at GO/creature removal.
Closes issue 5011.
--HG--
branch : trunk
Diffstat (limited to 'src/server/scripts/EasternKingdoms/ShadowfangKeep')
| -rw-r--r-- | src/server/scripts/EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/server/scripts/EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp b/src/server/scripts/EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp index b2a893971dd..ca7e769d049 100644 --- a/src/server/scripts/EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp +++ b/src/server/scripts/EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp @@ -98,34 +98,34 @@ public: uiTimer = 0; } - void OnCreatureCreate(Creature* pCreature, bool /*add*/) + void OnCreatureCreate(Creature* creature) { - switch(pCreature->GetEntry()) + switch(creature->GetEntry()) { - case NPC_ASH: uiAshGUID = pCreature->GetGUID(); break; - case NPC_ADA: uiAdaGUID = pCreature->GetGUID(); break; - case NPC_ARCHMAGE_ARUGAL: uiArchmageArugalGUID = pCreature->GetGUID(); break; + case NPC_ASH: uiAshGUID = creature->GetGUID(); break; + case NPC_ADA: uiAdaGUID = creature->GetGUID(); break; + case NPC_ARCHMAGE_ARUGAL: uiArchmageArugalGUID = creature->GetGUID(); break; } } - void OnGameObjectCreate(GameObject* pGo, bool /*add*/) + void OnGameObjectCreate(GameObject* go) { - switch(pGo->GetEntry()) + switch(go->GetEntry()) { case GO_COURTYARD_DOOR: - DoorCourtyardGUID = pGo->GetGUID(); + DoorCourtyardGUID = go->GetGUID(); if (m_auiEncounter[0] == DONE) - HandleGameObject(NULL, true, pGo); + HandleGameObject(NULL, true, go); break; case GO_SORCERER_DOOR: - DoorSorcererGUID = pGo->GetGUID(); + DoorSorcererGUID = go->GetGUID(); if (m_auiEncounter[2] == DONE) - HandleGameObject(NULL, true, pGo); + HandleGameObject(NULL, true, go); break; case GO_ARUGAL_DOOR: - DoorArugalGUID = pGo->GetGUID(); + DoorArugalGUID = go->GetGUID(); if (m_auiEncounter[3] == DONE) - HandleGameObject(NULL, true, pGo); + HandleGameObject(NULL, true, go); break; } } |
