mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +01:00
Scripts/Icecrown Citadel: Added support for weekly quest "Deprogramming"
This commit is contained in:
@@ -19,11 +19,13 @@
|
||||
#include "ScriptMgr.h"
|
||||
#include "ScriptedCreature.h"
|
||||
#include "SpellScript.h"
|
||||
#include "icecrown_citadel.h"
|
||||
#include "PoolMgr.h"
|
||||
#include "Group.h"
|
||||
#include "icecrown_citadel.h"
|
||||
|
||||
enum ScriptTexts
|
||||
{
|
||||
// Lady Deathwhisper
|
||||
SAY_INTRO_1 = 0,
|
||||
SAY_INTRO_2 = 1,
|
||||
SAY_INTRO_3 = 2,
|
||||
@@ -41,6 +43,10 @@ enum ScriptTexts
|
||||
SAY_KILL = 14,
|
||||
SAY_BERSERK = 15,
|
||||
SAY_DEATH = 16,
|
||||
|
||||
// Darnavan
|
||||
SAY_DARNAVAN_AGGRO = 0,
|
||||
SAY_DARNAVAN_RESCUED = 1,
|
||||
};
|
||||
|
||||
enum Spells
|
||||
@@ -89,6 +95,14 @@ enum Spells
|
||||
SPELL_VENGEFUL_BLAST_25N = 72010,
|
||||
SPELL_VENGEFUL_BLAST_10H = 72011,
|
||||
SPELL_VENGEFUL_BLAST_25H = 72012,
|
||||
|
||||
// Darnavan
|
||||
SPELL_BLADESTORM = 65947,
|
||||
SPELL_CHARGE = 65927,
|
||||
SPELL_INTIMIDATING_SHOUT = 65930,
|
||||
SPELL_MORTAL_STRIKE = 65926,
|
||||
SPELL_SHATTERING_THROW = 65940,
|
||||
SPELL_SUNDER_ARMOR = 65936,
|
||||
};
|
||||
|
||||
enum Events
|
||||
@@ -131,6 +145,14 @@ enum Events
|
||||
EVENT_ADHERENT_DEATHCHILL = 25,
|
||||
EVENT_ADHERENT_CURSE_OF_TORPOR = 26,
|
||||
EVENT_ADHERENT_SHORUD_OF_THE_OCCULT = 27,
|
||||
|
||||
// Darnavan
|
||||
EVENT_DARNAVAN_BLADESTORM = 28,
|
||||
EVENT_DARNAVAN_CHARGE = 29,
|
||||
EVENT_DARNAVAN_INTIMIDATING_SHOUT = 30,
|
||||
EVENT_DARNAVAN_MORTAL_STRIKE = 31,
|
||||
EVENT_DARNAVAN_SHATTERING_THROW = 32,
|
||||
EVENT_DARNAVAN_SUNDER_ARMOR = 33,
|
||||
};
|
||||
|
||||
enum Phases
|
||||
@@ -144,6 +166,24 @@ enum Phases
|
||||
PHASE_ONE_MASK = 1 << PHASE_ONE,
|
||||
};
|
||||
|
||||
enum DeprogrammingData
|
||||
{
|
||||
QUEST_DEPROGRAMMING_10 = 24869,
|
||||
QUEST_DEPROGRAMMING_25 = 24875,
|
||||
|
||||
NPC_DARNAVAN_10 = 38472,
|
||||
NPC_DARNAVAN_25 = 38485,
|
||||
NPC_DARNAVAN_CREDIT_10 = 39091,
|
||||
NPC_DARNAVAN_CREDIT_25 = 39092,
|
||||
|
||||
ACTION_COMPLETE_QUEST = -384720,
|
||||
POINT_DESPAWN = 384721,
|
||||
};
|
||||
|
||||
#define NPC_DARNAVAN RAID_MODE<uint32>(NPC_DARNAVAN_10,NPC_DARNAVAN_25,NPC_DARNAVAN_10,NPC_DARNAVAN_25)
|
||||
#define NPC_DARNAVAN_CREDIT RAID_MODE<uint32>(NPC_DARNAVAN_CREDIT_10,NPC_DARNAVAN_CREDIT_25,NPC_DARNAVAN_CREDIT_10,NPC_DARNAVAN_CREDIT_25)
|
||||
#define QUEST_DEPROGRAMMING RAID_MODE<uint32>(QUEST_DEPROGRAMMING_10,QUEST_DEPROGRAMMING_25,QUEST_DEPROGRAMMING_10,QUEST_DEPROGRAMMING_25)
|
||||
|
||||
static const uint32 addEntries[2] = {NPC_CULT_FANATIC, NPC_CULT_ADHERENT};
|
||||
|
||||
static const Position addSpawnPos[7] =
|
||||
@@ -157,6 +197,20 @@ static const Position addSpawnPos[7] =
|
||||
{-524.2480f, 2211.920f, 62.90960f, 3.141592f}, // 7 Upper (Random Cultist)
|
||||
};
|
||||
|
||||
class DaranavanMoveEvent : public BasicEvent
|
||||
{
|
||||
public:
|
||||
DaranavanMoveEvent(Creature& _darnavan) : darnavan(_darnavan) { }
|
||||
|
||||
bool Execute(uint64 , uint32 )
|
||||
{
|
||||
darnavan.GetMotionMaster()->MovePoint(POINT_DESPAWN, addSpawnPos[6]);
|
||||
return true;
|
||||
}
|
||||
|
||||
Creature& darnavan;
|
||||
};
|
||||
|
||||
class boss_lady_deathwhisper : public CreatureScript
|
||||
{
|
||||
public:
|
||||
@@ -167,7 +221,7 @@ class boss_lady_deathwhisper : public CreatureScript
|
||||
boss_lady_deathwhisperAI(Creature* creature) : BossAI(creature, DATA_LADY_DEATHWHISPER)
|
||||
{
|
||||
introDone = false;
|
||||
dominateMindCount = RAID_MODE<uint8>(0,1,1,3);
|
||||
dominateMindCount = RAID_MODE<uint8>(0, 1, 1, 3);
|
||||
}
|
||||
|
||||
void InitializeAI()
|
||||
@@ -186,6 +240,7 @@ class boss_lady_deathwhisper : public CreatureScript
|
||||
events.SetPhase(PHASE_ONE);
|
||||
addWaveCounter = 0;
|
||||
nextVengefulShadeTarget = 0;
|
||||
darnavanGUID = 0;
|
||||
DoCast(me, SPELL_SHADOW_CHANNELING);
|
||||
me->RemoveAurasDueToSpell(SPELL_BERSERK);
|
||||
me->RemoveAurasDueToSpell(SPELL_MANA_BARRIER);
|
||||
@@ -264,23 +319,29 @@ class boss_lady_deathwhisper : public CreatureScript
|
||||
livingAddEntries.insert(unit->GetEntry());
|
||||
|
||||
if (livingAddEntries.size() >= 5)
|
||||
{
|
||||
if (Player* player = killer->GetCharmerOrOwnerPlayerOrPlayerItself())
|
||||
{
|
||||
if (Group* group = player->GetGroup())
|
||||
{
|
||||
for (GroupReference *itr = group->GetFirstMember(); itr != NULL; itr = itr->next())
|
||||
{
|
||||
Player* member = itr->getSource();
|
||||
if (!member || !member->IsAtGroupRewardDistance(me))
|
||||
continue;
|
||||
instance->DoUpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_BE_SPELL_TARGET, SPELL_FULL_HOUSE, 0, me);
|
||||
|
||||
if (member->isAlive()|| !member->GetCorpse())
|
||||
member->GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_BE_SPELL_TARGET, SPELL_FULL_HOUSE, 0, me);
|
||||
if (Creature* darnavan = ObjectAccessor::GetCreature(*me, darnavanGUID))
|
||||
{
|
||||
if (darnavan->isAlive())
|
||||
{
|
||||
darnavan->setFaction(35);
|
||||
darnavan->CombatStop(true);
|
||||
darnavan->GetMotionMaster()->MoveIdle();
|
||||
darnavan->SetReactState(REACT_PASSIVE);
|
||||
darnavan->m_Events.AddEvent(new DaranavanMoveEvent(*darnavan), darnavan->m_Events.CalculateTime(10000));
|
||||
darnavan->AI()->Talk(SAY_DARNAVAN_RESCUED);
|
||||
if (Player* owner = killer->GetCharmerOrOwnerPlayerOrPlayerItself())
|
||||
{
|
||||
if (Group* group = owner->GetGroup())
|
||||
{
|
||||
for (GroupReference *itr = group->GetFirstMember(); itr != NULL; itr = itr->next())
|
||||
if (Player* member = itr->getSource())
|
||||
member->KilledMonsterCredit(NPC_DARNAVAN_CREDIT, 0);
|
||||
}
|
||||
else
|
||||
owner->KilledMonsterCredit(NPC_DARNAVAN_CREDIT, 0);
|
||||
}
|
||||
else
|
||||
player->GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_BE_SPELL_TARGET, SPELL_FULL_HOUSE, 0, me);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -293,6 +354,11 @@ class boss_lady_deathwhisper : public CreatureScript
|
||||
instance->SetBossState(DATA_LADY_DEATHWHISPER, FAIL);
|
||||
|
||||
summons.DespawnAll();
|
||||
if (Creature* darnavan = ObjectAccessor::GetCreature(*me, darnavanGUID))
|
||||
{
|
||||
darnavan->DespawnOrUnsummon();
|
||||
darnavanGUID = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void KilledUnit(Unit* victim)
|
||||
@@ -329,7 +395,11 @@ class boss_lady_deathwhisper : public CreatureScript
|
||||
|
||||
void JustSummoned(Creature* summon)
|
||||
{
|
||||
summons.push_back(summon->GetGUID());
|
||||
if (summon->GetEntry() == NPC_DARNAVAN)
|
||||
darnavanGUID = summon->GetGUID();
|
||||
else
|
||||
summons.push_back(summon->GetGUID());
|
||||
|
||||
Unit* target = NULL;
|
||||
if (summon->GetEntry() == NPC_VENGEFUL_SHADE)
|
||||
{
|
||||
@@ -452,7 +522,10 @@ class boss_lady_deathwhisper : public CreatureScript
|
||||
{
|
||||
uint8 addIndex = addWaveCounter & 1;
|
||||
uint8 addIndexOther = uint8(addIndex ^ 1);
|
||||
_SummonAdd(addEntries[addIndex], addSpawnPos[addIndex*3]);
|
||||
if (addWaveCounter || !sPoolMgr->IsSpawnedObject<Quest>(QUEST_DEPROGRAMMING))
|
||||
_SummonAdd(addEntries[addIndex], addSpawnPos[addIndex*3]);
|
||||
else
|
||||
_SummonAdd(NPC_DARNAVAN, addSpawnPos[addIndex*3]);
|
||||
_SummonAdd(addEntries[addIndexOther], addSpawnPos[addIndex*3+1]);
|
||||
_SummonAdd(addEntries[addIndex], addSpawnPos[addIndex*3+2]);
|
||||
if (Is25ManRaid())
|
||||
@@ -550,6 +623,7 @@ class boss_lady_deathwhisper : public CreatureScript
|
||||
|
||||
private:
|
||||
uint64 nextVengefulShadeTarget;
|
||||
uint64 darnavanGUID;
|
||||
std::deque<uint64> reanimationQueue;
|
||||
uint32 addWaveCounter;
|
||||
uint8 dominateMindCount;
|
||||
@@ -562,6 +636,8 @@ class boss_lady_deathwhisper : public CreatureScript
|
||||
}
|
||||
};
|
||||
|
||||
typedef boss_lady_deathwhisper::boss_lady_deathwhisperAI DeathwisperAI;
|
||||
|
||||
class npc_cult_fanatic : public CreatureScript
|
||||
{
|
||||
public:
|
||||
@@ -765,6 +841,126 @@ class npc_vengeful_shade : public CreatureScript
|
||||
}
|
||||
};
|
||||
|
||||
class npc_darnavan : public CreatureScript
|
||||
{
|
||||
public:
|
||||
npc_darnavan() : CreatureScript("npc_darnavan") { }
|
||||
|
||||
struct npc_darnavanAI : public ScriptedAI
|
||||
{
|
||||
npc_darnavanAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
}
|
||||
|
||||
void Reset()
|
||||
{
|
||||
events.Reset();
|
||||
events.ScheduleEvent(EVENT_DARNAVAN_BLADESTORM, 10000);
|
||||
events.ScheduleEvent(EVENT_DARNAVAN_INTIMIDATING_SHOUT, urand(20000, 25000));
|
||||
events.ScheduleEvent(EVENT_DARNAVAN_MORTAL_STRIKE, urand(25000, 30000));
|
||||
events.ScheduleEvent(EVENT_DARNAVAN_SUNDER_ARMOR, urand(5000, 8000));
|
||||
canCharge = true;
|
||||
canShatter = true;
|
||||
}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
{
|
||||
events.Reset();
|
||||
if (Player* owner = killer->GetCharmerOrOwnerPlayerOrPlayerItself())
|
||||
{
|
||||
if (Group* group = owner->GetGroup())
|
||||
{
|
||||
for (GroupReference *itr = group->GetFirstMember(); itr != NULL; itr = itr->next())
|
||||
if (Player* member = itr->getSource())
|
||||
member->FailQuest(QUEST_DEPROGRAMMING);
|
||||
}
|
||||
else
|
||||
owner->FailQuest(QUEST_DEPROGRAMMING);
|
||||
}
|
||||
}
|
||||
|
||||
void MovementInform(uint32 type, uint32 id)
|
||||
{
|
||||
if (type != POINT_MOTION_TYPE || id != POINT_DESPAWN)
|
||||
return;
|
||||
me->DespawnOrUnsummon();
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* /*victim*/)
|
||||
{
|
||||
Talk(SAY_DARNAVAN_AGGRO);
|
||||
}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
events.Update(diff);
|
||||
|
||||
if (me->HasUnitState(UNIT_STAT_CASTING))
|
||||
return;
|
||||
|
||||
if (canShatter && me->getVictim()->IsImmunedToDamage(SPELL_SCHOOL_MASK_NORMAL))
|
||||
{
|
||||
DoCastVictim(SPELL_SHATTERING_THROW);
|
||||
canShatter = false;
|
||||
events.ScheduleEvent(EVENT_DARNAVAN_SHATTERING_THROW, 30000);
|
||||
return;
|
||||
}
|
||||
|
||||
if (canCharge && !me->IsWithinMeleeRange(me->getVictim()))
|
||||
{
|
||||
DoCastVictim(SPELL_CHARGE);
|
||||
canCharge = false;
|
||||
events.ScheduleEvent(EVENT_DARNAVAN_CHARGE, 20000);
|
||||
return;
|
||||
}
|
||||
|
||||
while (uint32 eventId = events.ExecuteEvent())
|
||||
{
|
||||
switch (eventId)
|
||||
{
|
||||
case EVENT_DARNAVAN_BLADESTORM:
|
||||
DoCast(SPELL_BLADESTORM);
|
||||
events.ScheduleEvent(EVENT_DARNAVAN_BLADESTORM, urand(90000, 100000));
|
||||
break;
|
||||
case EVENT_DARNAVAN_CHARGE:
|
||||
canCharge = true;
|
||||
break;
|
||||
case EVENT_DARNAVAN_INTIMIDATING_SHOUT:
|
||||
DoCast(SPELL_INTIMIDATING_SHOUT);
|
||||
events.ScheduleEvent(EVENT_DARNAVAN_INTIMIDATING_SHOUT, urand(90000, 120000));
|
||||
break;
|
||||
case EVENT_DARNAVAN_MORTAL_STRIKE:
|
||||
DoCastVictim(SPELL_MORTAL_STRIKE);
|
||||
events.ScheduleEvent(EVENT_DARNAVAN_MORTAL_STRIKE, urand(15000, 30000));
|
||||
break;
|
||||
case EVENT_DARNAVAN_SHATTERING_THROW:
|
||||
canShatter = true;
|
||||
break;
|
||||
case EVENT_DARNAVAN_SUNDER_ARMOR:
|
||||
DoCastVictim(SPELL_SUNDER_ARMOR);
|
||||
events.ScheduleEvent(EVENT_DARNAVAN_SUNDER_ARMOR, urand(3000, 7000));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
|
||||
private:
|
||||
EventMap events;
|
||||
bool canCharge;
|
||||
bool canShatter;
|
||||
};
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new npc_darnavanAI(creature);
|
||||
}
|
||||
};
|
||||
|
||||
class spell_deathwhisper_mana_barrier : public SpellScriptLoader
|
||||
{
|
||||
public:
|
||||
@@ -809,7 +1005,7 @@ class spell_cultist_dark_martyrdom : public SpellScriptLoader
|
||||
if (GetCaster()->isSummon())
|
||||
if (Unit* owner = GetCaster()->ToTempSummon()->GetSummoner())
|
||||
if (owner->GetEntry() == NPC_LADY_DEATHWHISPER)
|
||||
CAST_AI(boss_lady_deathwhisper::boss_lady_deathwhisperAI, owner->ToCreature()->AI())->AddToReanimationQueue(GetCaster());
|
||||
CAST_AI(DeathwisperAI, owner->ToCreature()->AI())->AddToReanimationQueue(GetCaster());
|
||||
|
||||
GetCaster()->Kill(GetCaster());
|
||||
GetCaster()->SetDisplayId(uint32(GetCaster()->GetEntry() == NPC_CULT_FANATIC ? 38009 : 38010));
|
||||
@@ -833,6 +1029,7 @@ void AddSC_boss_lady_deathwhisper()
|
||||
new npc_cult_fanatic();
|
||||
new npc_cult_adherent();
|
||||
new npc_vengeful_shade();
|
||||
new npc_darnavan();
|
||||
new spell_deathwhisper_mana_barrier();
|
||||
new spell_cultist_dark_martyrdom();
|
||||
}
|
||||
|
||||
@@ -23,10 +23,10 @@
|
||||
#include "icecrown_citadel.h"
|
||||
|
||||
// Weekly quest support
|
||||
//* Deprogramming
|
||||
//* Deprogramming (DONE)
|
||||
//* Securing the Ramparts (DONE)
|
||||
//* Residue Rendezvous
|
||||
//* Blood Quickening
|
||||
//* Blood Quickening // AreaTrigger 5729 starts the timer, pulling BQ before it runs out means success
|
||||
//* Respite for a Tormented Soul
|
||||
|
||||
enum Texts
|
||||
|
||||
@@ -78,8 +78,6 @@ enum CreaturesIds
|
||||
// At Light's Hammer
|
||||
NPC_KOR_KRON_GENERAL = 37189,
|
||||
NPC_ALLIANCE_COMMANDER = 37190,
|
||||
NPC_KOR_KRON_LIEUTENANT = 38491,
|
||||
NPC_SKYBREAKER_LIEUTENANT = 38492,
|
||||
NPC_TORTUNOK = 37992, // Druid Armor H
|
||||
NPC_ALANA_MOONSTRIKE = 37999, // Druid Armor A
|
||||
NPC_GERARDO_THE_SUAVE = 37993, // Hunter Armor H
|
||||
@@ -95,6 +93,14 @@ enum CreaturesIds
|
||||
NPC_GARROSH_HELLSCREAM = 39372,
|
||||
NPC_KING_VARIAN_WRYNN = 39371,
|
||||
|
||||
// Weekly questgivers
|
||||
NPC_INFILTRATOR_MINCHAR = 38471,
|
||||
NPC_KOR_KRON_LIEUTENANT = 38491,
|
||||
NPC_SKYBREAKER_LIEUTENANT = 38492,
|
||||
NPC_ALCHEMIST_ADRIANNA = 38501,
|
||||
NPC_ALRIN_THE_AGILE = 38551,
|
||||
NPC_VALITHRIA_DREAMWALKER_QUEST = 38589,
|
||||
|
||||
// Lord Marrowgar
|
||||
NPC_LORD_MARROWGAR = 36612,
|
||||
NPC_COLDFLAME = 36672,
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include "InstanceScript.h"
|
||||
#include "ScriptedCreature.h"
|
||||
#include "Map.h"
|
||||
#include "PoolMgr.h"
|
||||
#include "icecrown_citadel.h"
|
||||
|
||||
static const DoorData doorData[] =
|
||||
@@ -47,6 +48,19 @@ static const DoorData doorData[] =
|
||||
{0, 0, DOOR_TYPE_ROOM, BOUNDARY_NONE} // END
|
||||
};
|
||||
|
||||
struct WeeklyQuest
|
||||
{
|
||||
uint32 npcStart;
|
||||
uint32 questId[2]; // 10 and 25 man versions
|
||||
} WeeklyQuestData[5] =
|
||||
{
|
||||
{NPC_INFILTRATOR_MINCHAR, {24869, 24875}}, // Deprogramming
|
||||
{NPC_KOR_KRON_LIEUTENANT, {24870, 24877}}, // Securing the Ramparts
|
||||
{NPC_ALCHEMIST_ADRIANNA, {24873, 24878}}, // Residue Rendezvous
|
||||
{NPC_ALRIN_THE_AGILE, {24874, 24879}}, // Blood Quickening
|
||||
{NPC_VALITHRIA_DREAMWALKER_QUEST, {24872, 24880}}, // Respite for a Tormented Soul
|
||||
};
|
||||
|
||||
class instance_icecrown_citadel : public InstanceMapScript
|
||||
{
|
||||
public:
|
||||
@@ -201,6 +215,35 @@ class instance_icecrown_citadel : public InstanceMapScript
|
||||
}
|
||||
}
|
||||
|
||||
// Weekly quest spawn prevention
|
||||
uint32 GetCreatureEntry(uint32 /*guidLow*/, CreatureData const* data)
|
||||
{
|
||||
uint32 entry = data->id;
|
||||
switch (entry)
|
||||
{
|
||||
case NPC_INFILTRATOR_MINCHAR:
|
||||
case NPC_KOR_KRON_LIEUTENANT:
|
||||
case NPC_ALCHEMIST_ADRIANNA:
|
||||
case NPC_ALRIN_THE_AGILE:
|
||||
case NPC_VALITHRIA_DREAMWALKER_QUEST:
|
||||
{
|
||||
uint8 questIndex = 0;
|
||||
for (; questIndex < 5; ++questIndex)
|
||||
if (WeeklyQuestData[questIndex].npcStart == entry)
|
||||
break;
|
||||
|
||||
uint8 diffIndex = instance->GetSpawnMode() & 1;
|
||||
if (!sPoolMgr->IsSpawnedObject<Quest>(WeeklyQuestData[questIndex].questId[diffIndex]))
|
||||
entry = 0;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return entry;
|
||||
}
|
||||
|
||||
void OnCreatureRemove(Creature* creature)
|
||||
{
|
||||
if (creature->GetEntry() == NPC_FROST_FREEZE_TRAP)
|
||||
@@ -704,19 +747,19 @@ class instance_icecrown_citadel : public InstanceMapScript
|
||||
return saveStream.str();
|
||||
}
|
||||
|
||||
void Load(const char* in)
|
||||
void Load(const char* str)
|
||||
{
|
||||
if (!in)
|
||||
if (!str)
|
||||
{
|
||||
OUT_LOAD_INST_DATA_FAIL;
|
||||
return;
|
||||
}
|
||||
|
||||
OUT_LOAD_INST_DATA(in);
|
||||
OUT_LOAD_INST_DATA(str);
|
||||
|
||||
char dataHead1, dataHead2;
|
||||
|
||||
std::istringstream loadStream(in);
|
||||
std::istringstream loadStream(str);
|
||||
loadStream >> dataHead1 >> dataHead2;
|
||||
|
||||
if (dataHead1 == 'I' && dataHead2 == 'C')
|
||||
@@ -729,11 +772,10 @@ class instance_icecrown_citadel : public InstanceMapScript
|
||||
tmpState = NOT_STARTED;
|
||||
SetBossState(i, EncounterState(tmpState));
|
||||
}
|
||||
|
||||
uint32 jets = 0;
|
||||
loadStream >> jets;
|
||||
if (jets)
|
||||
jets = DONE;
|
||||
coldflameJetsState = jets;
|
||||
coldflameJetsState = jets ? DONE : NOT_STARTED;
|
||||
} else OUT_LOAD_INST_DATA_FAIL;
|
||||
|
||||
OUT_LOAD_INST_DATA_COMPLETE;
|
||||
|
||||
Reference in New Issue
Block a user