Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[2473] Implement Berserk spell for Doomlord Kazzak

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
  • Loading branch information...
commit ca85e912b059589385411d75f3accada77707982 1 parent 9d40a62
Hundekuchen authored xfurry committed
Showing with 17 additions and 3 deletions.
  1. +16 −2 scripts/outland/boss_doomlord_kazzak.cpp
  2. +1 −1  sd2_revision_nr.h
18 scripts/outland/boss_doomlord_kazzak.cpp
View
@@ -16,8 +16,8 @@
/* ScriptData
SDName: Boss_Doomlord_Kazzak
-SD%Complete: 80
-SDComment: Timers; Hard enrage NYI
+SD%Complete: 90
+SDComment: Timers
SDCategory: Hellfire Peninsula
EndScriptData */
@@ -59,6 +59,7 @@ struct MANGOS_DLL_DECL boss_doomlordkazzakAI : public ScriptedAI
uint32 m_uiVoidBoltTimer;
uint32 m_uiMarkOfKazzakTimer;
uint32 m_uiEnrageTimer;
+ uint32 m_uiGreatEnrageTimer;
uint32 m_uiTwistedReflectionTimer;
void Reset()
@@ -69,6 +70,7 @@ struct MANGOS_DLL_DECL boss_doomlordkazzakAI : public ScriptedAI
m_uiVoidBoltTimer = 30000;
m_uiMarkOfKazzakTimer = 25000;
m_uiEnrageTimer = 60000;
+ m_uiGreatEnrageTimer = 3*MINUTE*IN_MILLISECONDS;
m_uiTwistedReflectionTimer = 33000; // Timer may be incorrect
}
@@ -171,6 +173,18 @@ struct MANGOS_DLL_DECL boss_doomlordkazzakAI : public ScriptedAI
else
m_uiEnrageTimer -= uiDiff;
+ // Great_Enrage_Timer
+ if (m_uiGreatEnrageTimer)
+ {
+ if (m_uiGreatEnrageTimer <= uiDiff)
+ {
+ if (DoCastSpellIfCan(m_creature, SPELL_BERSERK) == CAST_OK)
+ m_uiGreatEnrageTimer = 0;
+ }
+ else
+ m_uiGreatEnrageTimer -= uiDiff;
+ }
+
// Twisted Reflection
if (m_uiTwistedReflectionTimer < uiDiff)
{
2  sd2_revision_nr.h
View
@@ -1,4 +1,4 @@
#ifndef __SD2_REVISION_NR_H__
#define __SD2_REVISION_NR_H__
- #define SD2_REVISION_NR "2472"
+ #define SD2_REVISION_NR "2473"
#endif // __SD2_REVISION_NR_H__
Please sign in to comment.
Something went wrong with that request. Please try again.