mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Scripts/Icecrown Citadel
* Despawn all kind of summons when Blood Prince Council encounter finishes * Properly remove Delirious Slash debuff on all difficulties * Increased delaying events when Blood-Queen Lana'thel's air phase happens, she should no longer cast anything before flying * Remove Mutated Infection debuff when Rotface dies
This commit is contained in:
@@ -425,6 +425,9 @@ class boss_prince_keleseth_icc : public CreatureScript
|
||||
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
events.Reset();
|
||||
summons.DespawnAll();
|
||||
|
||||
Talk(SAY_KELESETH_DEATH);
|
||||
instance->SendEncounterUnit(ENCOUNTER_FRAME_REMOVE, me);
|
||||
}
|
||||
@@ -646,6 +649,9 @@ class boss_prince_taldaram_icc : public CreatureScript
|
||||
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
events.Reset();
|
||||
summons.DespawnAll();
|
||||
|
||||
Talk(EMOTE_TALDARAM_DEATH);
|
||||
instance->SendEncounterUnit(ENCOUNTER_FRAME_REMOVE, me);
|
||||
}
|
||||
@@ -866,6 +872,9 @@ class boss_prince_valanar_icc : public CreatureScript
|
||||
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
events.Reset();
|
||||
summons.DespawnAll();
|
||||
|
||||
Talk(SAY_VALANAR_DEATH);
|
||||
instance->SendEncounterUnit(ENCOUNTER_FRAME_REMOVE, me);
|
||||
}
|
||||
|
||||
@@ -81,6 +81,7 @@ uint32 const vampireAuras[3][MAX_DIFFICULTY] =
|
||||
#define ESSENCE_OF_BLOOD_QUEEN RAID_MODE<uint32>(70867, 71473, 71532, 71533)
|
||||
#define ESSENCE_OF_BLOOD_QUEEN_PLR RAID_MODE<uint32>(70879, 71525, 71530, 71531)
|
||||
#define FRENZIED_BLOODTHIRST RAID_MODE<uint32>(70877, 71474, 70877, 71474)
|
||||
#define DELIRIOUS_SLASH RAID_MODE<uint32>(71623, 71624, 71625, 71626)
|
||||
|
||||
enum Events
|
||||
{
|
||||
@@ -185,7 +186,7 @@ class boss_blood_queen_lana_thel : public CreatureScript
|
||||
instance->DoRemoveAurasDueToSpellOnPlayers(SPELL_BLOOD_MIRROR_DAMAGE);
|
||||
instance->DoRemoveAurasDueToSpellOnPlayers(SPELL_BLOOD_MIRROR_VISUAL);
|
||||
instance->DoRemoveAurasDueToSpellOnPlayers(SPELL_BLOOD_MIRROR_DUMMY);
|
||||
instance->DoRemoveAurasDueToSpellOnPlayers(SPELL_DELIRIOUS_SLASH);
|
||||
instance->DoRemoveAurasDueToSpellOnPlayers(DELIRIOUS_SLASH);
|
||||
instance->DoRemoveAurasDueToSpellOnPlayers(SPELL_PACT_OF_THE_DARKFALLEN);
|
||||
// Blah, credit the quest
|
||||
if (_creditBloodQuickening)
|
||||
@@ -355,6 +356,7 @@ class boss_blood_queen_lana_thel : public CreatureScript
|
||||
_offtank = newOfftank;
|
||||
if (_offtank)
|
||||
{
|
||||
// both spells have SPELL_ATTR5_SINGLE_TARGET_SPELL, no manual removal needed
|
||||
_offtank->CastSpell(me->getVictim(), SPELL_BLOOD_MIRROR_DAMAGE, true);
|
||||
me->getVictim()->CastSpell(_offtank, SPELL_BLOOD_MIRROR_DUMMY, true);
|
||||
DoCastVictim(SPELL_BLOOD_MIRROR_VISUAL);
|
||||
@@ -416,7 +418,7 @@ class boss_blood_queen_lana_thel : public CreatureScript
|
||||
case EVENT_AIR_PHASE:
|
||||
DoStopAttack();
|
||||
me->SetReactState(REACT_PASSIVE);
|
||||
events.DelayEvents(7000, EVENT_GROUP_NORMAL);
|
||||
events.DelayEvents(10000, EVENT_GROUP_NORMAL);
|
||||
events.CancelEventGroup(EVENT_GROUP_CANCELLABLE);
|
||||
me->GetMotionMaster()->MovePoint(POINT_CENTER, centerPos);
|
||||
break;
|
||||
|
||||
@@ -125,6 +125,7 @@ class boss_rotface : public CreatureScript
|
||||
{
|
||||
_JustDied();
|
||||
Talk(SAY_DEATH);
|
||||
instance->DoRemoveAurasDueToSpellOnPlayers(MUTATED_INFECTION);
|
||||
if (Creature* professor = Unit::GetCreature(*me, instance->GetData64(DATA_PROFESSOR_PUTRICIDE)))
|
||||
professor->AI()->DoAction(ACTION_ROTFACE_DEATH);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user