*Small fix in Kalecgos - by darktabbit
--HG-- branch : trunk
This commit is contained in:
@@ -837,7 +837,7 @@ void LoadOverridenSQLData()
|
|||||||
// Sunwell Plateau : Kalecgos : Spectral Rift
|
// Sunwell Plateau : Kalecgos : Spectral Rift
|
||||||
goInfo = const_cast<GameObjectInfo*>(GetGameObjectInfo(187055));
|
goInfo = const_cast<GameObjectInfo*>(GetGameObjectInfo(187055));
|
||||||
if(goInfo && goInfo->type == GAMEOBJECT_TYPE_GOOBER)
|
if(goInfo && goInfo->type == GAMEOBJECT_TYPE_GOOBER)
|
||||||
goInfo->goober.lockId = 1714; // need LOCKTYPE_QUICK_OPEN
|
goInfo->type = GAMEOBJECT_TYPE_SPELLCASTER;
|
||||||
}
|
}
|
||||||
|
|
||||||
void LoadOverridenDBCData()
|
void LoadOverridenDBCData()
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ EndScriptData */
|
|||||||
|
|
||||||
#define SPELL_BANISH 44836
|
#define SPELL_BANISH 44836
|
||||||
#define SPELL_TRANSFORM_KALEC 44670
|
#define SPELL_TRANSFORM_KALEC 44670
|
||||||
#define SPELL_ENRAGE 44806
|
#define SPELL_ENRAGE 44807
|
||||||
|
|
||||||
#define SPELL_CORRUPTION_STRIKE 45029
|
#define SPELL_CORRUPTION_STRIKE 45029
|
||||||
#define SPELL_AGONY_CURSE 45032
|
#define SPELL_AGONY_CURSE 45032
|
||||||
@@ -351,8 +351,11 @@ struct TRINITY_DLL_DECL boss_sathrovarrAI : public ScriptedAI
|
|||||||
if (((m_creature->GetHealth()*100 / m_creature->GetMaxHealth()) < 10) && !isEnraged)
|
if (((m_creature->GetHealth()*100 / m_creature->GetMaxHealth()) < 10) && !isEnraged)
|
||||||
{
|
{
|
||||||
Unit* Kalecgos = Unit::GetUnit(*m_creature, KalecgosGUID);
|
Unit* Kalecgos = Unit::GetUnit(*m_creature, KalecgosGUID);
|
||||||
if (Kalecgos)
|
if(Kalecgos)
|
||||||
|
{
|
||||||
Kalecgos->CastSpell(Kalecgos, SPELL_ENRAGE, true);
|
Kalecgos->CastSpell(Kalecgos, SPELL_ENRAGE, true);
|
||||||
|
((boss_kalecgosAI*)((Creature*)Kalecgos)->AI())->isEnraged = true;
|
||||||
|
}
|
||||||
DoCast(m_creature, SPELL_ENRAGE, true);
|
DoCast(m_creature, SPELL_ENRAGE, true);
|
||||||
isEnraged = true;
|
isEnraged = true;
|
||||||
}
|
}
|
||||||
@@ -548,8 +551,11 @@ void boss_kalecgosAI::UpdateAI(const uint32 diff)
|
|||||||
if (((m_creature->GetHealth()*100 / m_creature->GetMaxHealth()) < 10) && !isEnraged)
|
if (((m_creature->GetHealth()*100 / m_creature->GetMaxHealth()) < 10) && !isEnraged)
|
||||||
{
|
{
|
||||||
Unit* Sath = Unit::GetUnit(*m_creature, SathGUID);
|
Unit* Sath = Unit::GetUnit(*m_creature, SathGUID);
|
||||||
if (Sath)
|
if(Sath)
|
||||||
|
{
|
||||||
Sath->CastSpell(Sath, SPELL_ENRAGE, true);
|
Sath->CastSpell(Sath, SPELL_ENRAGE, true);
|
||||||
|
((boss_sathrovarrAI*)((Creature*)Sath)->AI())->isEnraged = true;
|
||||||
|
}
|
||||||
DoCast(m_creature, SPELL_ENRAGE, true);
|
DoCast(m_creature, SPELL_ENRAGE, true);
|
||||||
isEnraged = true;
|
isEnraged = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user