*SerpentShrine Caverns fixes
-target only players for some spells -innerdeamons only follow their 'targets' -despawn deamons when Leo divides himself --HG-- branch : trunk
This commit is contained in:
+2
-2
@@ -56,7 +56,7 @@ EndScriptData */
|
||||
#define SPELL_ENRAGE 27680 //this spell need verification
|
||||
#define SPELL_SUMMON_WATER_ELEMENT 36459 //not in use yet(in use ever?)
|
||||
#define SPELL_ELEMENTAL_SPAWNIN 25035
|
||||
#define SPELL_BLUE_BEAM /*40227*/40227 //channeled Hydross Beam Helper (not in use yet)
|
||||
#define SPELL_BLUE_BEAM 40227 //channeled Hydross Beam Helper (not in use yet)
|
||||
|
||||
#define ENTRY_PURE_SPAWN 22035
|
||||
#define ENTRY_TAINTED_SPAWN 22036
|
||||
@@ -324,7 +324,7 @@ struct TRINITY_DLL_DECL boss_hydross_the_unstableAI : public ScriptedAI
|
||||
//WaterTomb_Timer
|
||||
if (WaterTomb_Timer < diff)
|
||||
{
|
||||
Unit *target = SelectUnit(SELECT_TARGET_RANDOM, 0);
|
||||
Unit *target = SelectTarget(SELECT_TARGET_RANDOM, 0, 100, true);
|
||||
if (target)
|
||||
DoCast(target, SPELL_WATER_TOMB);
|
||||
|
||||
|
||||
+1
-1
@@ -365,7 +365,7 @@ struct TRINITY_DLL_DECL boss_lady_vashjAI : public ScriptedAI
|
||||
//Static Charge
|
||||
//Used on random people (only 1 person at any given time) in Phases 1 and 3, it's a debuff doing 2775 to 3225 Nature damage to the target and everybody in about 5 yards around it, every 1 seconds for 30 seconds. It can be removed by Cloak of Shadows, Iceblock, Divine Shield, etc, but not by Cleanse or Dispel Magic.
|
||||
Unit *target = NULL;
|
||||
target = SelectUnit(SELECT_TARGET_RANDOM, 0);
|
||||
target = SelectTarget(SELECT_TARGET_RANDOM, 0, 200, true);
|
||||
|
||||
if(target && !target->HasAura(SPELL_STATIC_CHARGE_TRIGGER))
|
||||
//cast Static Charge every 2 seconds for 20 seconds
|
||||
|
||||
+13
-1
@@ -111,10 +111,19 @@ struct TRINITY_DLL_DECL mob_inner_demonAI : public ScriptedAI
|
||||
|
||||
if (m_creature->getVictim()->GetGUID() != victimGUID)
|
||||
{
|
||||
DoModifyThreatPercent(m_creature->getVictim(), -100);
|
||||
Unit* owner = Unit::GetUnit((*m_creature),victimGUID);
|
||||
if (owner)
|
||||
if (owner && owner->isAlive())
|
||||
{
|
||||
m_creature->AddThreat(owner,999999);
|
||||
AttackStart(owner);
|
||||
}else if(owner && owner->isDead())
|
||||
{
|
||||
m_creature->DealDamage(m_creature, m_creature->GetHealth(), NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, NULL, false);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if(Link_Timer < diff)
|
||||
{
|
||||
DoCast(m_creature->getVictim(), SPELL_SOUL_LINK, true);
|
||||
@@ -433,6 +442,7 @@ struct TRINITY_DLL_DECL boss_leotheras_the_blindAI : public ScriptedAI
|
||||
//Enrage_Timer ( 10 min )
|
||||
if(Berserk_Timer < diff && !EnrageUsed)
|
||||
{
|
||||
m_creature->InterruptNonMeleeSpells(false);
|
||||
DoCast(m_creature, SPELL_BERSERK);
|
||||
EnrageUsed = true;
|
||||
}else Berserk_Timer -= diff;
|
||||
@@ -550,6 +560,8 @@ struct TRINITY_DLL_DECL boss_leotheras_the_blindAI : public ScriptedAI
|
||||
if (!IsFinalForm && (m_creature->GetHealth()*100 / m_creature->GetMaxHealth()) < 15)
|
||||
{
|
||||
//at this point he divides himself in two parts
|
||||
CastConsumingMadness();
|
||||
DespawnDemon();
|
||||
Creature *Copy = NULL;
|
||||
Copy = DoSpawnCreature(DEMON_FORM, 0, 0, 0, 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 6000);
|
||||
if(Copy)
|
||||
|
||||
Reference in New Issue
Block a user