REPO: Code-style clean-ups
* Fixed pMap->map * Fixed pInstance->instance * Fixed pInsta->instance * Fixed pQuest->quest * Fixed pWho->who * Fixed pTarget->target * Fixed pGo->go ~DEVNOTES: Handlers/QuestHandler.cpp still needs to be cleaned...
This commit is contained in:
@@ -61,10 +61,10 @@ class boss_arlokk : public CreatureScript
|
||||
{
|
||||
boss_arlokkAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
m_pInstance = creature->GetInstanceScript();
|
||||
m_instance = creature->GetInstanceScript();
|
||||
}
|
||||
|
||||
InstanceScript* m_pInstance;
|
||||
InstanceScript* m_instance;
|
||||
|
||||
uint32 m_uiShadowWordPain_Timer;
|
||||
uint32 m_uiGouge_Timer;
|
||||
@@ -110,8 +110,8 @@ class boss_arlokk : public CreatureScript
|
||||
|
||||
void JustReachedHome()
|
||||
{
|
||||
if (m_pInstance)
|
||||
m_pInstance->SetData(DATA_ARLOKK, NOT_STARTED);
|
||||
if (m_instance)
|
||||
m_instance->SetData(DATA_ARLOKK, NOT_STARTED);
|
||||
|
||||
//we should be summoned, so despawn
|
||||
me->DespawnOrUnsummon();
|
||||
@@ -124,8 +124,8 @@ class boss_arlokk : public CreatureScript
|
||||
me->SetDisplayId(MODEL_ID_NORMAL);
|
||||
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
|
||||
|
||||
if (m_pInstance)
|
||||
m_pInstance->SetData(DATA_ARLOKK, DONE);
|
||||
if (m_instance)
|
||||
m_instance->SetData(DATA_ARLOKK, DONE);
|
||||
}
|
||||
|
||||
void DoSummonPhanters()
|
||||
@@ -269,14 +269,14 @@ class go_gong_of_bethekk : public GameObjectScript
|
||||
{
|
||||
}
|
||||
|
||||
bool OnGossipHello(Player* /*player*/, GameObject* pGo)
|
||||
bool OnGossipHello(Player* /*player*/, GameObject* go)
|
||||
{
|
||||
if (InstanceScript* m_pInstance = pGo->GetInstanceScript())
|
||||
if (InstanceScript* m_instance = go->GetInstanceScript())
|
||||
{
|
||||
if (m_pInstance->GetData(DATA_ARLOKK) == DONE || m_pInstance->GetData(DATA_ARLOKK) == IN_PROGRESS)
|
||||
if (m_instance->GetData(DATA_ARLOKK) == DONE || m_instance->GetData(DATA_ARLOKK) == IN_PROGRESS)
|
||||
return true;
|
||||
|
||||
m_pInstance->SetData(DATA_ARLOKK, IN_PROGRESS);
|
||||
m_instance->SetData(DATA_ARLOKK, IN_PROGRESS);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -57,10 +57,10 @@ class boss_hakkar : public CreatureScript
|
||||
{
|
||||
boss_hakkarAI(Creature* c) : ScriptedAI(c)
|
||||
{
|
||||
m_pInstance = c->GetInstanceScript();
|
||||
m_instance = c->GetInstanceScript();
|
||||
}
|
||||
|
||||
InstanceScript* m_pInstance;
|
||||
InstanceScript* m_instance;
|
||||
|
||||
uint32 BloodSiphon_Timer;
|
||||
uint32 CorruptedBlood_Timer;
|
||||
@@ -156,9 +156,9 @@ class boss_hakkar : public CreatureScript
|
||||
//Checking if Jeklik is dead. If not we cast her Aspect
|
||||
if (CheckJeklik_Timer <= diff)
|
||||
{
|
||||
if (m_pInstance)
|
||||
if (m_instance)
|
||||
{
|
||||
if (m_pInstance->GetData(DATA_JEKLIK) != DONE)
|
||||
if (m_instance->GetData(DATA_JEKLIK) != DONE)
|
||||
{
|
||||
if (AspectOfJeklik_Timer <= diff)
|
||||
{
|
||||
@@ -173,9 +173,9 @@ class boss_hakkar : public CreatureScript
|
||||
//Checking if Venoxis is dead. If not we cast his Aspect
|
||||
if (CheckVenoxis_Timer <= diff)
|
||||
{
|
||||
if (m_pInstance)
|
||||
if (m_instance)
|
||||
{
|
||||
if (m_pInstance->GetData(DATA_VENOXIS) != DONE)
|
||||
if (m_instance->GetData(DATA_VENOXIS) != DONE)
|
||||
{
|
||||
if (AspectOfVenoxis_Timer <= diff)
|
||||
{
|
||||
@@ -190,9 +190,9 @@ class boss_hakkar : public CreatureScript
|
||||
//Checking if Marli is dead. If not we cast her Aspect
|
||||
if (CheckMarli_Timer <= diff)
|
||||
{
|
||||
if (m_pInstance)
|
||||
if (m_instance)
|
||||
{
|
||||
if (m_pInstance->GetData(DATA_MARLI) != DONE)
|
||||
if (m_instance->GetData(DATA_MARLI) != DONE)
|
||||
{
|
||||
if (AspectOfMarli_Timer <= diff)
|
||||
{
|
||||
@@ -208,9 +208,9 @@ class boss_hakkar : public CreatureScript
|
||||
//Checking if Thekal is dead. If not we cast his Aspect
|
||||
if (CheckThekal_Timer <= diff)
|
||||
{
|
||||
if (m_pInstance)
|
||||
if (m_instance)
|
||||
{
|
||||
if (m_pInstance->GetData(DATA_THEKAL) != DONE)
|
||||
if (m_instance->GetData(DATA_THEKAL) != DONE)
|
||||
{
|
||||
if (AspectOfThekal_Timer <= diff)
|
||||
{
|
||||
@@ -225,9 +225,9 @@ class boss_hakkar : public CreatureScript
|
||||
//Checking if Arlokk is dead. If yes we cast her Aspect
|
||||
if (CheckArlokk_Timer <= diff)
|
||||
{
|
||||
if (m_pInstance)
|
||||
if (m_instance)
|
||||
{
|
||||
if (m_pInstance->GetData(DATA_ARLOKK) != DONE)
|
||||
if (m_instance->GetData(DATA_ARLOKK) != DONE)
|
||||
{
|
||||
if (AspectOfArlokk_Timer <= diff)
|
||||
{
|
||||
|
||||
@@ -56,10 +56,10 @@ class boss_jeklik : public CreatureScript
|
||||
{
|
||||
boss_jeklikAI(Creature* c) : ScriptedAI(c)
|
||||
{
|
||||
m_pInstance = c->GetInstanceScript();
|
||||
m_instance = c->GetInstanceScript();
|
||||
}
|
||||
|
||||
InstanceScript* m_pInstance;
|
||||
InstanceScript* m_instance;
|
||||
|
||||
uint32 Charge_Timer;
|
||||
uint32 SonicBurst_Timer;
|
||||
@@ -98,8 +98,8 @@ class boss_jeklik : public CreatureScript
|
||||
{
|
||||
DoScriptText(SAY_DEATH, me);
|
||||
|
||||
if (m_pInstance)
|
||||
m_pInstance->SetData(DATA_JEKLIK, DONE);
|
||||
if (m_instance)
|
||||
m_instance->SetData(DATA_JEKLIK, DONE);
|
||||
}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
@@ -238,10 +238,10 @@ class mob_batrider : public CreatureScript
|
||||
{
|
||||
mob_batriderAI(Creature* c) : ScriptedAI(c)
|
||||
{
|
||||
m_pInstance = c->GetInstanceScript();
|
||||
m_instance = c->GetInstanceScript();
|
||||
}
|
||||
|
||||
InstanceScript* m_pInstance;
|
||||
InstanceScript* m_instance;
|
||||
|
||||
uint32 Bomb_Timer;
|
||||
uint32 Check_Timer;
|
||||
@@ -274,9 +274,9 @@ class mob_batrider : public CreatureScript
|
||||
//Check_Timer
|
||||
if (Check_Timer <= diff)
|
||||
{
|
||||
if (m_pInstance)
|
||||
if (m_instance)
|
||||
{
|
||||
if (m_pInstance->GetData(DATA_JEKLIK) == DONE)
|
||||
if (m_instance->GetData(DATA_JEKLIK) == DONE)
|
||||
{
|
||||
me->setDeathState(JUST_DIED);
|
||||
me->RemoveCorpse();
|
||||
|
||||
@@ -189,12 +189,12 @@ class mob_healing_ward : public CreatureScript
|
||||
{
|
||||
mob_healing_wardAI(Creature* c) : ScriptedAI(c)
|
||||
{
|
||||
pInstance = c->GetInstanceScript();
|
||||
instance = c->GetInstanceScript();
|
||||
}
|
||||
|
||||
uint32 Heal_Timer;
|
||||
|
||||
InstanceScript* pInstance;
|
||||
InstanceScript* instance;
|
||||
|
||||
void Reset()
|
||||
{
|
||||
@@ -210,9 +210,9 @@ class mob_healing_ward : public CreatureScript
|
||||
//Heal_Timer
|
||||
if (Heal_Timer <= diff)
|
||||
{
|
||||
if (pInstance)
|
||||
if (instance)
|
||||
{
|
||||
Unit* pJindo = Unit::GetUnit((*me), pInstance->GetData64(DATA_JINDO));
|
||||
Unit* pJindo = Unit::GetUnit((*me), instance->GetData64(DATA_JINDO));
|
||||
if (pJindo)
|
||||
DoCast(pJindo, SPELL_HEAL);
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ class boss_mandokir : public CreatureScript
|
||||
{
|
||||
boss_mandokirAI(Creature* c) : ScriptedAI(c)
|
||||
{
|
||||
m_pInstance = c->GetInstanceScript();
|
||||
m_instance = c->GetInstanceScript();
|
||||
}
|
||||
|
||||
uint32 KillCount;
|
||||
@@ -72,7 +72,7 @@ class boss_mandokir : public CreatureScript
|
||||
float targetY;
|
||||
float targetZ;
|
||||
|
||||
InstanceScript* m_pInstance;
|
||||
InstanceScript* m_instance;
|
||||
|
||||
bool endWatch;
|
||||
bool someWatched;
|
||||
@@ -116,9 +116,9 @@ class boss_mandokir : public CreatureScript
|
||||
{
|
||||
DoScriptText(SAY_DING_KILL, me);
|
||||
|
||||
if (m_pInstance)
|
||||
if (m_instance)
|
||||
{
|
||||
uint64 JindoGUID = m_pInstance->GetData64(DATA_JINDO);
|
||||
uint64 JindoGUID = m_instance->GetData64(DATA_JINDO);
|
||||
if (JindoGUID)
|
||||
{
|
||||
if (Unit* jTemp = Unit::GetUnit(*me, JindoGUID))
|
||||
@@ -256,9 +256,9 @@ class boss_mandokir : public CreatureScript
|
||||
//Checking if Ohgan is dead. If yes Mandokir will enrage.
|
||||
if (Check_Timer <= diff)
|
||||
{
|
||||
if (m_pInstance)
|
||||
if (m_instance)
|
||||
{
|
||||
if (m_pInstance->GetData(DATA_OHGAN) == DONE)
|
||||
if (m_instance->GetData(DATA_OHGAN) == DONE)
|
||||
{
|
||||
if (!RaptorDead)
|
||||
{
|
||||
@@ -296,11 +296,11 @@ class mob_ohgan : public CreatureScript
|
||||
{
|
||||
mob_ohganAI(Creature* c) : ScriptedAI(c)
|
||||
{
|
||||
m_pInstance = c->GetInstanceScript();
|
||||
m_instance = c->GetInstanceScript();
|
||||
}
|
||||
|
||||
uint32 SunderArmor_Timer;
|
||||
InstanceScript* m_pInstance;
|
||||
InstanceScript* m_instance;
|
||||
|
||||
void Reset()
|
||||
{
|
||||
@@ -311,8 +311,8 @@ class mob_ohgan : public CreatureScript
|
||||
|
||||
void JustDied(Unit* /*Killer*/)
|
||||
{
|
||||
if (m_pInstance)
|
||||
m_pInstance->SetData(DATA_OHGAN, DONE);
|
||||
if (m_instance)
|
||||
m_instance->SetData(DATA_OHGAN, DONE);
|
||||
}
|
||||
|
||||
void UpdateAI (const uint32 diff)
|
||||
|
||||
@@ -53,10 +53,10 @@ class boss_marli : public CreatureScript
|
||||
{
|
||||
boss_marliAI(Creature* c) : ScriptedAI(c)
|
||||
{
|
||||
m_pInstance = c->GetInstanceScript();
|
||||
m_instance = c->GetInstanceScript();
|
||||
}
|
||||
|
||||
InstanceScript* m_pInstance;
|
||||
InstanceScript* m_instance;
|
||||
|
||||
uint32 SpawnStartSpiders_Timer;
|
||||
uint32 PoisonVolley_Timer;
|
||||
@@ -91,8 +91,8 @@ class boss_marli : public CreatureScript
|
||||
void JustDied(Unit* /*Killer*/)
|
||||
{
|
||||
DoScriptText(SAY_DEATH, me);
|
||||
if (m_pInstance)
|
||||
m_pInstance->SetData(DATA_MARLI, DONE);
|
||||
if (m_instance)
|
||||
m_instance->SetData(DATA_MARLI, DONE);
|
||||
}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
|
||||
@@ -68,7 +68,7 @@ class boss_thekal : public CreatureScript
|
||||
{
|
||||
boss_thekalAI(Creature* c) : ScriptedAI(c)
|
||||
{
|
||||
m_pInstance = c->GetInstanceScript();
|
||||
m_instance = c->GetInstanceScript();
|
||||
}
|
||||
|
||||
uint32 MortalCleave_Timer;
|
||||
@@ -81,7 +81,7 @@ class boss_thekal : public CreatureScript
|
||||
uint32 Check_Timer;
|
||||
uint32 Resurrect_Timer;
|
||||
|
||||
InstanceScript* m_pInstance;
|
||||
InstanceScript* m_instance;
|
||||
bool Enraged;
|
||||
bool PhaseTwo;
|
||||
bool WasDead;
|
||||
@@ -111,14 +111,14 @@ class boss_thekal : public CreatureScript
|
||||
void JustDied(Unit* /*Killer*/)
|
||||
{
|
||||
DoScriptText(SAY_DEATH, me);
|
||||
if (m_pInstance)
|
||||
m_pInstance->SetData(DATA_THEKAL, DONE);
|
||||
if (m_instance)
|
||||
m_instance->SetData(DATA_THEKAL, DONE);
|
||||
}
|
||||
|
||||
void JustReachedHome()
|
||||
{
|
||||
if (m_pInstance)
|
||||
m_pInstance->SetData(DATA_THEKAL, NOT_STARTED);
|
||||
if (m_instance)
|
||||
m_instance->SetData(DATA_THEKAL, NOT_STARTED);
|
||||
}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
@@ -129,26 +129,26 @@ class boss_thekal : public CreatureScript
|
||||
//Check_Timer for the death of LorKhan and Zath.
|
||||
if (!WasDead && Check_Timer <= diff)
|
||||
{
|
||||
if (m_pInstance)
|
||||
if (m_instance)
|
||||
{
|
||||
if (m_pInstance->GetData(DATA_LORKHAN) == SPECIAL)
|
||||
if (m_instance->GetData(DATA_LORKHAN) == SPECIAL)
|
||||
{
|
||||
//Resurrect LorKhan
|
||||
if (Unit* pLorKhan = Unit::GetUnit((*me), m_pInstance->GetData64(DATA_LORKHAN)))
|
||||
if (Unit* pLorKhan = Unit::GetUnit((*me), m_instance->GetData64(DATA_LORKHAN)))
|
||||
{
|
||||
pLorKhan->SetUInt32Value(UNIT_FIELD_BYTES_1, 0);
|
||||
pLorKhan->setFaction(14);
|
||||
pLorKhan->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
|
||||
pLorKhan->SetFullHealth();
|
||||
|
||||
m_pInstance->SetData(DATA_LORKHAN, DONE);
|
||||
m_instance->SetData(DATA_LORKHAN, DONE);
|
||||
}
|
||||
}
|
||||
|
||||
if (m_pInstance->GetData(DATA_ZATH) == SPECIAL)
|
||||
if (m_instance->GetData(DATA_ZATH) == SPECIAL)
|
||||
{
|
||||
//Resurrect Zath
|
||||
Unit* pZath = Unit::GetUnit((*me), m_pInstance->GetData64(DATA_ZATH));
|
||||
Unit* pZath = Unit::GetUnit((*me), m_instance->GetData64(DATA_ZATH));
|
||||
if (pZath)
|
||||
{
|
||||
pZath->SetUInt32Value(UNIT_FIELD_BYTES_1, 0);
|
||||
@@ -156,7 +156,7 @@ class boss_thekal : public CreatureScript
|
||||
pZath->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
|
||||
pZath->SetFullHealth();
|
||||
|
||||
m_pInstance->SetData(DATA_ZATH, DONE);
|
||||
m_instance->SetData(DATA_ZATH, DONE);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -185,8 +185,8 @@ class boss_thekal : public CreatureScript
|
||||
me->SetStandState(UNIT_STAND_STATE_SLEEP);
|
||||
me->AttackStop();
|
||||
|
||||
if (m_pInstance)
|
||||
m_pInstance->SetData(DATA_THEKAL, SPECIAL);
|
||||
if (m_instance)
|
||||
m_instance->SetData(DATA_THEKAL, SPECIAL);
|
||||
|
||||
WasDead=true;
|
||||
}
|
||||
@@ -279,7 +279,7 @@ class mob_zealot_lorkhan : public CreatureScript
|
||||
{
|
||||
mob_zealot_lorkhanAI(Creature* c) : ScriptedAI(c)
|
||||
{
|
||||
m_pInstance = c->GetInstanceScript();
|
||||
m_instance = c->GetInstanceScript();
|
||||
}
|
||||
|
||||
uint32 Shield_Timer;
|
||||
@@ -290,7 +290,7 @@ class mob_zealot_lorkhan : public CreatureScript
|
||||
|
||||
bool FakeDeath;
|
||||
|
||||
InstanceScript* m_pInstance;
|
||||
InstanceScript* m_instance;
|
||||
|
||||
void Reset()
|
||||
{
|
||||
@@ -302,8 +302,8 @@ class mob_zealot_lorkhan : public CreatureScript
|
||||
|
||||
FakeDeath = false;
|
||||
|
||||
if (m_pInstance)
|
||||
m_pInstance->SetData(DATA_LORKHAN, NOT_STARTED);
|
||||
if (m_instance)
|
||||
m_instance->SetData(DATA_LORKHAN, NOT_STARTED);
|
||||
|
||||
me->SetUInt32Value(UNIT_FIELD_BYTES_1, 0);
|
||||
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
|
||||
@@ -335,10 +335,10 @@ class mob_zealot_lorkhan : public CreatureScript
|
||||
//Casting Greaterheal to Thekal or Zath if they are in meele range.
|
||||
if (GreaterHeal_Timer <= diff)
|
||||
{
|
||||
if (m_pInstance)
|
||||
if (m_instance)
|
||||
{
|
||||
Unit* pThekal = Unit::GetUnit((*me), m_pInstance->GetData64(DATA_THEKAL));
|
||||
Unit* pZath = Unit::GetUnit((*me), m_pInstance->GetData64(DATA_ZATH));
|
||||
Unit* pThekal = Unit::GetUnit((*me), m_instance->GetData64(DATA_THEKAL));
|
||||
Unit* pZath = Unit::GetUnit((*me), m_instance->GetData64(DATA_ZATH));
|
||||
|
||||
if (!pThekal || !pZath)
|
||||
return;
|
||||
@@ -369,12 +369,12 @@ class mob_zealot_lorkhan : public CreatureScript
|
||||
//Check_Timer for the death of LorKhan and Zath.
|
||||
if (!FakeDeath && Check_Timer <= diff)
|
||||
{
|
||||
if (m_pInstance)
|
||||
if (m_instance)
|
||||
{
|
||||
if (m_pInstance->GetData(DATA_THEKAL) == SPECIAL)
|
||||
if (m_instance->GetData(DATA_THEKAL) == SPECIAL)
|
||||
{
|
||||
//Resurrect Thekal
|
||||
if (Unit* pThekal = Unit::GetUnit((*me), m_pInstance->GetData64(DATA_THEKAL)))
|
||||
if (Unit* pThekal = Unit::GetUnit((*me), m_instance->GetData64(DATA_THEKAL)))
|
||||
{
|
||||
pThekal->SetUInt32Value(UNIT_FIELD_BYTES_1, 0);
|
||||
pThekal->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
|
||||
@@ -383,10 +383,10 @@ class mob_zealot_lorkhan : public CreatureScript
|
||||
}
|
||||
}
|
||||
|
||||
if (m_pInstance->GetData(DATA_ZATH) == SPECIAL)
|
||||
if (m_instance->GetData(DATA_ZATH) == SPECIAL)
|
||||
{
|
||||
//Resurrect Zath
|
||||
if (Unit* pZath = Unit::GetUnit((*me), m_pInstance->GetData64(DATA_ZATH)))
|
||||
if (Unit* pZath = Unit::GetUnit((*me), m_instance->GetData64(DATA_ZATH)))
|
||||
{
|
||||
pZath->SetUInt32Value(UNIT_FIELD_BYTES_1, 0);
|
||||
pZath->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
|
||||
@@ -409,8 +409,8 @@ class mob_zealot_lorkhan : public CreatureScript
|
||||
me->setFaction(35);
|
||||
me->AttackStop();
|
||||
|
||||
if (m_pInstance)
|
||||
m_pInstance->SetData(DATA_LORKHAN, SPECIAL);
|
||||
if (m_instance)
|
||||
m_instance->SetData(DATA_LORKHAN, SPECIAL);
|
||||
|
||||
FakeDeath = true;
|
||||
}
|
||||
@@ -439,7 +439,7 @@ class mob_zealot_zath : public CreatureScript
|
||||
{
|
||||
mob_zealot_zathAI(Creature* c) : ScriptedAI(c)
|
||||
{
|
||||
m_pInstance = c->GetInstanceScript();
|
||||
m_instance = c->GetInstanceScript();
|
||||
}
|
||||
|
||||
uint32 SweepingStrikes_Timer;
|
||||
@@ -451,7 +451,7 @@ class mob_zealot_zath : public CreatureScript
|
||||
|
||||
bool FakeDeath;
|
||||
|
||||
InstanceScript* m_pInstance;
|
||||
InstanceScript* m_instance;
|
||||
|
||||
void Reset()
|
||||
{
|
||||
@@ -464,8 +464,8 @@ class mob_zealot_zath : public CreatureScript
|
||||
|
||||
FakeDeath = false;
|
||||
|
||||
if (m_pInstance)
|
||||
m_pInstance->SetData(DATA_ZATH, NOT_STARTED);
|
||||
if (m_instance)
|
||||
m_instance->SetData(DATA_ZATH, NOT_STARTED);
|
||||
|
||||
me->SetStandState(UNIT_STAND_STATE_STAND);
|
||||
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
|
||||
@@ -522,12 +522,12 @@ class mob_zealot_zath : public CreatureScript
|
||||
//Check_Timer for the death of LorKhan and Zath.
|
||||
if (!FakeDeath && Check_Timer <= diff)
|
||||
{
|
||||
if (m_pInstance)
|
||||
if (m_instance)
|
||||
{
|
||||
if (m_pInstance->GetData(DATA_LORKHAN) == SPECIAL)
|
||||
if (m_instance->GetData(DATA_LORKHAN) == SPECIAL)
|
||||
{
|
||||
//Resurrect LorKhan
|
||||
if (Unit* pLorKhan = Unit::GetUnit((*me), m_pInstance->GetData64(DATA_LORKHAN)))
|
||||
if (Unit* pLorKhan = Unit::GetUnit((*me), m_instance->GetData64(DATA_LORKHAN)))
|
||||
{
|
||||
pLorKhan->SetUInt32Value(UNIT_FIELD_BYTES_1, 0);
|
||||
pLorKhan->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
|
||||
@@ -536,10 +536,10 @@ class mob_zealot_zath : public CreatureScript
|
||||
}
|
||||
}
|
||||
|
||||
if (m_pInstance->GetData(DATA_THEKAL) == SPECIAL)
|
||||
if (m_instance->GetData(DATA_THEKAL) == SPECIAL)
|
||||
{
|
||||
//Resurrect Thekal
|
||||
if (Unit* pThekal = Unit::GetUnit((*me), m_pInstance->GetData64(DATA_THEKAL)))
|
||||
if (Unit* pThekal = Unit::GetUnit((*me), m_instance->GetData64(DATA_THEKAL)))
|
||||
{
|
||||
pThekal->SetUInt32Value(UNIT_FIELD_BYTES_1, 0);
|
||||
pThekal->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
|
||||
@@ -562,8 +562,8 @@ class mob_zealot_zath : public CreatureScript
|
||||
me->setFaction(35);
|
||||
me->AttackStop();
|
||||
|
||||
if (m_pInstance)
|
||||
m_pInstance->SetData(DATA_ZATH, SPECIAL);
|
||||
if (m_instance)
|
||||
m_instance->SetData(DATA_ZATH, SPECIAL);
|
||||
|
||||
FakeDeath = true;
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ class instance_zulgurub : public InstanceMapScript
|
||||
|
||||
struct instance_zulgurub_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_zulgurub_InstanceMapScript(Map* pMap) : InstanceScript(pMap) {}
|
||||
instance_zulgurub_InstanceMapScript(Map* map) : InstanceScript(map) {}
|
||||
|
||||
//If all High Priest bosses were killed. Lorkhan, Zath and Ohgan are added too.
|
||||
uint32 m_auiEncounter[MAX_ENCOUNTERS];
|
||||
@@ -153,9 +153,9 @@ class instance_zulgurub : public InstanceMapScript
|
||||
}
|
||||
};
|
||||
|
||||
InstanceScript* GetInstanceScript(InstanceMap* pMap) const
|
||||
InstanceScript* GetInstanceScript(InstanceMap* map) const
|
||||
{
|
||||
return new instance_zulgurub_InstanceMapScript(pMap);
|
||||
return new instance_zulgurub_InstanceMapScript(map);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user