*Added defines for Sunwell Plateau
--HG-- branch : trunk
This commit is contained in:
@@ -51,6 +51,11 @@ EndScriptData */
|
|||||||
#define SPELL_BERSERK 26662
|
#define SPELL_BERSERK 26662
|
||||||
#define SPELL_DUAL_WIELD 42459
|
#define SPELL_DUAL_WIELD 42459
|
||||||
|
|
||||||
|
#define FREEZING 45203
|
||||||
|
#define FROST_BOLT 44843
|
||||||
|
#define ENCAPSULATE 45665
|
||||||
|
#define ENCAPSULATE_CHANELLING 45661
|
||||||
|
|
||||||
struct TRINITY_DLL_DECL boss_brutallusAI : public ScriptedAI
|
struct TRINITY_DLL_DECL boss_brutallusAI : public ScriptedAI
|
||||||
{
|
{
|
||||||
boss_brutallusAI(Creature *c) : ScriptedAI(c)
|
boss_brutallusAI(Creature *c) : ScriptedAI(c)
|
||||||
@@ -66,6 +71,9 @@ struct TRINITY_DLL_DECL boss_brutallusAI : public ScriptedAI
|
|||||||
uint32 StompTimer;
|
uint32 StompTimer;
|
||||||
uint32 BerserkTimer;
|
uint32 BerserkTimer;
|
||||||
|
|
||||||
|
uint32 ConversationTimer;
|
||||||
|
bool Intro;
|
||||||
|
|
||||||
void Reset()
|
void Reset()
|
||||||
{
|
{
|
||||||
SlashTimer = 11000;
|
SlashTimer = 11000;
|
||||||
@@ -73,11 +81,17 @@ struct TRINITY_DLL_DECL boss_brutallusAI : public ScriptedAI
|
|||||||
BurnTimer = 60000;
|
BurnTimer = 60000;
|
||||||
BerserkTimer = 360000;
|
BerserkTimer = 360000;
|
||||||
m_creature->CastSpell(m_creature, SPELL_DUAL_WIELD, true);
|
m_creature->CastSpell(m_creature, SPELL_DUAL_WIELD, true);
|
||||||
|
|
||||||
|
if(pInstance)
|
||||||
|
pInstance->SetData(DATA_BRUTALLUS, NOT_STARTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Aggro(Unit *who)
|
void Aggro(Unit *who)
|
||||||
{
|
{
|
||||||
DoScriptText(YELL_AGGRO, m_creature);
|
DoScriptText(YELL_AGGRO, m_creature);
|
||||||
|
|
||||||
|
if(pInstance)
|
||||||
|
pInstance->SetData(DATA_BRUTALLUS, IN_PROGRESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
void KilledUnit(Unit* victim)
|
void KilledUnit(Unit* victim)
|
||||||
@@ -93,6 +107,9 @@ struct TRINITY_DLL_DECL boss_brutallusAI : public ScriptedAI
|
|||||||
void JustDied(Unit* Killer)
|
void JustDied(Unit* Killer)
|
||||||
{
|
{
|
||||||
DoScriptText(YELL_DEATH, m_creature);
|
DoScriptText(YELL_DEATH, m_creature);
|
||||||
|
|
||||||
|
if(pInstance)
|
||||||
|
pInstance->SetData(DATA_BRUTALLUS, DONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateAI(const uint32 diff)
|
void UpdateAI(const uint32 diff)
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
#define DATA_KALECGOS_HUMAN 7
|
#define DATA_KALECGOS_HUMAN 7
|
||||||
#define DATA_SATHROVARR 8
|
#define DATA_SATHROVARR 8
|
||||||
#define DATA_BRUTALLUS 9
|
#define DATA_BRUTALLUS 9
|
||||||
|
#define DATA_MADRIGOSA 24
|
||||||
#define DATA_FELMYST 10
|
#define DATA_FELMYST 10
|
||||||
#define DATA_ALYTHESS 11
|
#define DATA_ALYTHESS 11
|
||||||
#define DATA_SACROLASH 12
|
#define DATA_SACROLASH 12
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ struct TRINITY_DLL_DECL instance_sunwell_plateau : public ScriptedInstance
|
|||||||
uint64 Kalecgos_Human;
|
uint64 Kalecgos_Human;
|
||||||
uint64 Sathrovarr;
|
uint64 Sathrovarr;
|
||||||
uint64 Brutallus;
|
uint64 Brutallus;
|
||||||
|
uint64 Madrigosa;
|
||||||
uint64 Felmyst;
|
uint64 Felmyst;
|
||||||
uint64 Alythess;
|
uint64 Alythess;
|
||||||
uint64 Sacrolash;
|
uint64 Sacrolash;
|
||||||
@@ -58,6 +59,7 @@ struct TRINITY_DLL_DECL instance_sunwell_plateau : public ScriptedInstance
|
|||||||
Kalecgos_Human = 0;
|
Kalecgos_Human = 0;
|
||||||
Sathrovarr = 0;
|
Sathrovarr = 0;
|
||||||
Brutallus = 0;
|
Brutallus = 0;
|
||||||
|
Madrigosa = 0;
|
||||||
Felmyst = 0;
|
Felmyst = 0;
|
||||||
Alythess = 0;
|
Alythess = 0;
|
||||||
Sacrolash = 0;
|
Sacrolash = 0;
|
||||||
@@ -100,6 +102,7 @@ struct TRINITY_DLL_DECL instance_sunwell_plateau : public ScriptedInstance
|
|||||||
case 24891: Kalecgos_Human = creature->GetGUID(); break;
|
case 24891: Kalecgos_Human = creature->GetGUID(); break;
|
||||||
case 24892: Sathrovarr = creature->GetGUID(); break;
|
case 24892: Sathrovarr = creature->GetGUID(); break;
|
||||||
case 24882: Brutallus = creature->GetGUID(); break;
|
case 24882: Brutallus = creature->GetGUID(); break;
|
||||||
|
case 24895: Madrigosa = creature->GetGUID(); break;
|
||||||
case 25038: Felmyst = creature->GetGUID(); break;
|
case 25038: Felmyst = creature->GetGUID(); break;
|
||||||
case 25166: Alythess = creature->GetGUID(); break;
|
case 25166: Alythess = creature->GetGUID(); break;
|
||||||
case 25165: Sacrolash = creature->GetGUID(); break;
|
case 25165: Sacrolash = creature->GetGUID(); break;
|
||||||
@@ -147,6 +150,7 @@ struct TRINITY_DLL_DECL instance_sunwell_plateau : public ScriptedInstance
|
|||||||
case DATA_KALECGOS_HUMAN: return Kalecgos_Human; break;
|
case DATA_KALECGOS_HUMAN: return Kalecgos_Human; break;
|
||||||
case DATA_SATHROVARR: return Sathrovarr; break;
|
case DATA_SATHROVARR: return Sathrovarr; break;
|
||||||
case DATA_BRUTALLUS: return Brutallus; break;
|
case DATA_BRUTALLUS: return Brutallus; break;
|
||||||
|
case DATA_MADRIGOSA: return Madrigosa; break;
|
||||||
case DATA_FELMYST: return Felmyst; break;
|
case DATA_FELMYST: return Felmyst; break;
|
||||||
case DATA_ALYTHESS: return Alythess; break;
|
case DATA_ALYTHESS: return Alythess; break;
|
||||||
case DATA_SACROLASH: return Sacrolash; break;
|
case DATA_SACROLASH: return Sacrolash; break;
|
||||||
|
|||||||
Reference in New Issue
Block a user