Skip to content

Commit 4fc6ba7

Browse files
committed
[z2710] Allow Shade of Jindo to use invisibility
The creature will attack automatically. If set to attack by script, the invisibility aura won't be applied. (based on commit SD2[3042] - 236d5f6) Signed-off-by: Xfurry <xfurry@scriptdev2.com> (based on commit SD2-TBC[s2800] - 95d8b9c) Signed-off-by: Xfurry <xfurry@scriptdev2.com>
1 parent f253a59 commit 4fc6ba7

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

scripts/eastern_kingdoms/zulgurub/boss_jindo.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ enum
3535
SPELL_SHADE_OF_JINDO = 24308, // Spell was removed from DBC around TBC; will summon npcs manually!
3636

3737
SPELL_HEALING_WARD_HEAL = 24311,
38+
SPELL_SHADE_OF_JINDO_PASSIVE = 24307,
3839

3940
// npcs
4041
NPC_SHADE_OF_JINDO = 14986,
@@ -133,7 +134,7 @@ struct boss_jindoAI : public ScriptedAI
133134
float fX, fY, fZ;
134135
m_creature->GetRandomPoint(pTarget->GetPositionX(), pTarget->GetPositionY(), pTarget->GetPositionZ(), 5.0f, fX, fY, fZ);
135136
if (Creature* pSummoned = m_creature->SummonCreature(NPC_SHADE_OF_JINDO, fX, fY, fZ, 0, TEMPSUMMON_TIMED_OOC_DESPAWN, 15000))
136-
pSummoned->AI()->AttackStart(pTarget);
137+
pSummoned->CastSpell(pSummoned, SPELL_SHADE_OF_JINDO_PASSIVE, true);
137138

138139
m_uiDelusionsTimer = urand(4000, 12000);
139140
}

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 "z2709"
3+
#define SD2_REVISION_NR "z2710"
44
#endif // __SD2_REVISION_NR_H__

0 commit comments

Comments
 (0)