Skip to content

Commit 6cc2d1a

Browse files
committed
[z2721] Use all spells for Gyth
(based on commit SD2[3080] - d122f8e) Signed-off-by: Xfurry <xfurry@scriptdev2.com> (based on commit SD2-TBC[s2821] - db83c7e) Signed-off-by: Xfurry <xfurry@scriptdev2.com>
1 parent a30f1ea commit 6cc2d1a

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

scripts/eastern_kingdoms/blackrock_spire/boss_gyth.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ struct boss_gythAI : public ScriptedAI
5151
uint32 uiCorrosiveAcidTimer;
5252
uint32 uiFreezeTimer;
5353
uint32 uiFlamebreathTimer;
54+
uint32 uiKnockAwayTimer;
5455

5556
bool m_bSummonedRend;
5657
bool m_bHasChromaticChaos;
@@ -60,6 +61,7 @@ struct boss_gythAI : public ScriptedAI
6061
uiCorrosiveAcidTimer = 8000;
6162
uiFreezeTimer = 11000;
6263
uiFlamebreathTimer = 4000;
64+
uiKnockAwayTimer = 23000;
6365
m_bSummonedRend = false;
6466
m_bHasChromaticChaos = false;
6567

@@ -118,6 +120,14 @@ struct boss_gythAI : public ScriptedAI
118120
else
119121
uiFlamebreathTimer -= uiDiff;
120122

123+
if (uiKnockAwayTimer < uiDiff)
124+
{
125+
if (DoCastSpellIfCan(m_creature->getVictim(), SPELL_KNOCK_AWAY) == CAST_OK)
126+
uiKnockAwayTimer = 23000;
127+
}
128+
else
129+
uiKnockAwayTimer -= uiDiff;
130+
121131
// Summon Rend
122132
if (!m_bSummonedRend && m_creature->GetHealthPercent() < 11.0f)
123133
{

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

0 commit comments

Comments
 (0)