mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-25 03:12:09 +01:00
*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
|
||||
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()
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user