Skip to content

Commit 84e33ac

Browse files
author
NoFantasy
committed
[1772] Remove unused definitions in uldaman instance script and correct prefix for a few
Remove unused definitions in uldaman instance script and correct prefix for a few git-svn-id: https://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2@1772 5f9c896b-1e26-0410-94da-f77f675e2462
1 parent 08df8fd commit 84e33ac

3 files changed

Lines changed: 15 additions & 20 deletions

File tree

scripts/eastern_kingdoms/uldaman/boss_archaedas.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/* ScriptData
1818
SDName: Boss_Archaedas
1919
SD%Complete: 60
20-
SDComment:
20+
SDComment: Need correct way to deal with awaken vault and guardian spells, waiting for additions in mangos for them (target combination 22/7)
2121
SDCategory: Uldaman
2222
EndScriptData */
2323

@@ -82,11 +82,9 @@ struct MANGOS_DLL_DECL boss_archaedasAI : public ScriptedAI
8282

8383
void JustDied(Unit* pKiller)
8484
{
85-
if (!m_pInstance)
86-
return;
87-
8885
// open door to vault (handled by instance script)
89-
m_pInstance->SetData(TYPE_ARCHAEDAS, DONE);
86+
if (m_pInstance)
87+
m_pInstance->SetData(TYPE_ARCHAEDAS, DONE);
9088
}
9189

9290
void JustReachedHome()

scripts/eastern_kingdoms/uldaman/instance_uldaman.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ void instance_uldaman::OnCreatureCreate(Creature* pCreature)
7171
{
7272
switch(pCreature->GetEntry())
7373
{
74-
case MOB_HALLSHAPER:
75-
case MOB_CUSTODIAN:
76-
case MOB_GUARDIAN:
77-
case MOB_VAULT_WARDER:
74+
case NPC_HALLSHAPER:
75+
case NPC_CUSTODIAN:
76+
case NPC_GUARDIAN:
77+
case NPC_VAULT_WARDER:
7878
m_lWardens.push_back(pCreature->GetGUID());
7979
pCreature->CastSpell(pCreature, SPELL_STONED, true);
8080
pCreature->SetNoCallAssistance(true); // no assistance
@@ -240,15 +240,15 @@ Creature* instance_uldaman::GetClosestDwarfNotInCombat(Creature* pSearcher, uint
240240
switch(uiPhase)
241241
{
242242
case PHASE_ARCHA_1:
243-
if (pTemp->GetEntry() != MOB_CUSTODIAN && pTemp->GetEntry() != MOB_HALLSHAPER)
243+
if (pTemp->GetEntry() != NPC_CUSTODIAN && pTemp->GetEntry() != NPC_HALLSHAPER)
244244
continue;
245245
break;
246246
case PHASE_ARCHA_2:
247-
if (pTemp->GetEntry() != MOB_GUARDIAN)
247+
if (pTemp->GetEntry() != NPC_GUARDIAN)
248248
continue;
249249
break;
250250
case PHASE_ARCHA_3:
251-
if (pTemp->GetEntry() != MOB_VAULT_WARDER)
251+
if (pTemp->GetEntry() != NPC_VAULT_WARDER)
252252
continue;
253253
break;
254254
}

scripts/eastern_kingdoms/uldaman/uldaman.h

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,17 @@ enum
1717
GO_TEMPLE_DOOR_LOWER = 141869,
1818
GO_ANCIENT_VAULT = 124369,
1919

20-
MOB_CUSTODIAN = 7309,
21-
MOB_HALLSHAPER = 7077,
22-
MOB_GUARDIAN = 7076,
23-
MOB_VAULT_WARDER = 10120,
20+
NPC_CUSTODIAN = 7309,
21+
NPC_HALLSHAPER = 7077,
22+
NPC_GUARDIAN = 7076,
23+
NPC_VAULT_WARDER = 10120,
2424
NPC_STONE_KEEPER = 4857,
2525

2626
PHASE_ARCHA_1 = 1,
2727
PHASE_ARCHA_2 = 2,
2828
PHASE_ARCHA_3 = 3,
2929

3030
SPELL_STONED = 10255,
31-
SPELL_USE_ALTAR_VISUAL = 11206,
32-
33-
FACTION_TITAN_HOSTILE = 415,
34-
FACTION_TITAN_NEUTRAL = 416,
3531

3632
EVENT_ID_ALTAR_KEEPER = 2228, // spell 11568
3733
EVENT_ID_ALTAR_ARCHAEDAS = 2268 // spell 10340
@@ -79,4 +75,5 @@ class MANGOS_DLL_DECL instance_uldaman : public ScriptedInstance
7975
std::list<uint64> m_lWardens;
8076
std::map<uint64, bool> m_mKeeperMap;
8177
};
78+
8279
#endif

0 commit comments

Comments
 (0)