Skip to content

Commit c9f4e30

Browse files
calaxfurry
authored andcommitted
[s2844] Small improvement in Sunken Temple
This will only make the Shade of Eranikus boss available after Jammal'an encounter is complete Signed-off-by: Xfurry <xfurry@scriptdev2.com> (based on commit SD2-TBC[3137] - d3987b4) Signed-off-by: xfurry <xfurry@scriptdev2.com>
1 parent 02c3f8e commit c9f4e30

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

scripts/eastern_kingdoms/sunken_temple/instance_sunken_temple.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ void instance_sunken_temple::OnCreatureCreate(Creature* pCreature)
8787
break;
8888
case NPC_JAMMALAN:
8989
case NPC_ATALARION:
90+
case NPC_SHADE_OF_ERANIKUS:
9091
m_mNpcEntryGuidStore[pCreature->GetEntry()] = pCreature->GetObjectGuid();
9192
break;
9293
}
@@ -103,6 +104,10 @@ void instance_sunken_temple::OnCreatureEvade(Creature* pCreature)
103104
case NPC_AVATAR_OF_HAKKAR:
104105
SetData(TYPE_AVATAR, FAIL);
105106
break;
107+
// Shade of Eranikus: prevent it to become unattackable after a wipe
108+
case NPC_SHADE_OF_ERANIKUS:
109+
pCreature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE);
110+
break;
106111
}
107112
}
108113

@@ -153,6 +158,11 @@ void instance_sunken_temple::SetData(uint32 uiType, uint32 uiData)
153158
}
154159
break;
155160
case TYPE_JAMMALAN:
161+
if (uiData == DONE)
162+
{
163+
if (Creature* pEranikus = GetSingleCreatureFromStorage(NPC_SHADE_OF_ERANIKUS))
164+
pEranikus->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE);
165+
}
156166
m_auiEncounter[uiType] = uiData;
157167
break;
158168
case TYPE_AVATAR:

sd2_revision_nr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#ifndef __SD2_REVISION_NR_H__
22
#define __SD2_REVISION_NR_H__
3-
#define SD2_REVISION_NR "s2843"
3+
#define SD2_REVISION_NR "s2844"
44
#endif // __SD2_REVISION_NR_H__

0 commit comments

Comments
 (0)