*Small fix in Kalecgos - by darktabbit

--HG--
branch : trunk
This commit is contained in:
Blaymoira
2009-02-15 16:55:00 +01:00
parent 7b19c8ac8e
commit 32f0fac014
2 changed files with 10 additions and 4 deletions

View File

@@ -837,7 +837,7 @@ void LoadOverridenSQLData()
// Sunwell Plateau : Kalecgos : Spectral Rift
goInfo = const_cast<GameObjectInfo*>(GetGameObjectInfo(187055));
if(goInfo && goInfo->type == GAMEOBJECT_TYPE_GOOBER)
goInfo->goober.lockId = 1714; // need LOCKTYPE_QUICK_OPEN
goInfo->type = GAMEOBJECT_TYPE_SPELLCASTER;
}
void LoadOverridenDBCData()

View File

@@ -69,7 +69,7 @@ EndScriptData */
#define SPELL_BANISH 44836
#define SPELL_TRANSFORM_KALEC 44670
#define SPELL_ENRAGE 44806
#define SPELL_ENRAGE 44807
#define SPELL_CORRUPTION_STRIKE 45029
#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)
{
Unit* Kalecgos = Unit::GetUnit(*m_creature, KalecgosGUID);
if (Kalecgos)
if(Kalecgos)
{
Kalecgos->CastSpell(Kalecgos, SPELL_ENRAGE, true);
((boss_kalecgosAI*)((Creature*)Kalecgos)->AI())->isEnraged = true;
}
DoCast(m_creature, SPELL_ENRAGE, true);
isEnraged = true;
}
@@ -548,8 +551,11 @@ void boss_kalecgosAI::UpdateAI(const uint32 diff)
if (((m_creature->GetHealth()*100 / m_creature->GetMaxHealth()) < 10) && !isEnraged)
{
Unit* Sath = Unit::GetUnit(*m_creature, SathGUID);
if (Sath)
if(Sath)
{
Sath->CastSpell(Sath, SPELL_ENRAGE, true);
((boss_sathrovarrAI*)((Creature*)Sath)->AI())->isEnraged = true;
}
DoCast(m_creature, SPELL_ENRAGE, true);
isEnraged = true;
}