*small tweaks to Utgarde keep bosses

--HG--
branch : trunk
This commit is contained in:
Rat
2010-03-14 23:44:27 +01:00
parent 50b59401dc
commit c8fd37a9dc
2 changed files with 8 additions and 4 deletions

View File

@@ -335,6 +335,7 @@ struct mob_annhylde_the_callerAI : public ScriptedAI
Resurect_Phase = 1;
break;
case 2:
m_creature->SetVisibility(VISIBILITY_OFF);
m_creature->DealDamage(m_creature,m_creature->GetHealth());
m_creature->RemoveCorpse();
break;

View File

@@ -341,14 +341,14 @@ struct boss_dalronn_the_controllerAI : public ScriptedAI
if (!m_creature->IsNonMeleeSpellCasted(false))
{
DoCast(SelectUnit(SELECT_TARGET_RANDOM, 0), DUNGEON_MODE(SPELL_SHADOW_BOLT, H_SPELL_SHADOW_BOLT));
ShadowBolt_Timer = 1000;
ShadowBolt_Timer = 2100;//give a 100ms pause to try cast other spells
}
} else ShadowBolt_Timer -= diff;
if (Debilitate_Timer <= diff)
{
if (!m_creature->IsNonMeleeSpellCasted(false))
{
{
DoCast(SelectUnit(SELECT_TARGET_RANDOM, 0), SPELL_DEBILITATE);
Debilitate_Timer = 5000+rand()%5000;
}
@@ -357,8 +357,11 @@ struct boss_dalronn_the_controllerAI : public ScriptedAI
if (IsHeroic())
if (Summon_Timer <= diff)
{
DoCast(m_creature, H_SPELL_SUMMON_SKELETONS);
Summon_Timer = (rand()%10000) + 20000;
if (!m_creature->IsNonMeleeSpellCasted(false))
{
DoCast(m_creature, H_SPELL_SUMMON_SKELETONS);
Summon_Timer = (rand()%10000) + 20000;
}
} else Summon_Timer -= diff;
DoMeleeAttackIfReady();