Scripts: Reorder file names in Commands/CMakeList file and cosmetic changes in all scripts
This commit is contained in:
@@ -235,7 +235,7 @@ class mob_chaotic_rift : public CreatureScript
|
||||
if (uiSummonCrazedManaWraithTimer <= diff)
|
||||
{
|
||||
if (Creature* Wraith = me->SummonCreature(MOB_CRAZED_MANA_WRAITH, me->GetPositionX() + 1, me->GetPositionY() + 1, me->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 1000))
|
||||
if (Unit *pTarget = SelectTarget(SELECT_TARGET_RANDOM, 0))
|
||||
if (Unit* pTarget = SelectTarget(SELECT_TARGET_RANDOM, 0))
|
||||
Wraith->AI()->AttackStart(pTarget);
|
||||
Creature* Anomalus = ObjectAccessor::GetCreature(*me, instance->GetData64(DATA_ANOMALUS));
|
||||
if (Anomalus && Anomalus->HasAura(SPELL_RIFT_SHIELD))
|
||||
|
||||
@@ -61,7 +61,7 @@ public:
|
||||
|
||||
struct boss_keristraszaAI : public ScriptedAI
|
||||
{
|
||||
boss_keristraszaAI(Creature *c) : ScriptedAI(c)
|
||||
boss_keristraszaAI(Creature* c) : ScriptedAI(c)
|
||||
{
|
||||
pInstance = c->GetInstanceScript();
|
||||
}
|
||||
@@ -125,7 +125,7 @@ public:
|
||||
auiContainmentSphereGUIDs[1] = pInstance->GetData64(ORMOROKS_CONTAINMET_SPHERE);
|
||||
auiContainmentSphereGUIDs[2] = pInstance->GetData64(TELESTRAS_CONTAINMET_SPHERE);
|
||||
|
||||
GameObject *ContainmentSpheres[DATA_CONTAINMENT_SPHERES];
|
||||
GameObject* ContainmentSpheres[DATA_CONTAINMENT_SPHERES];
|
||||
|
||||
for (uint8 i = 0; i < DATA_CONTAINMENT_SPHERES; ++i)
|
||||
{
|
||||
@@ -192,7 +192,7 @@ public:
|
||||
DoScriptText(SAY_CRYSTAL_NOVA, me);
|
||||
if (IsHeroic())
|
||||
DoCast(me, SPELL_CRYSTALIZE);
|
||||
else if (Unit *pTarget = SelectTarget(SELECT_TARGET_RANDOM, 0, 100, true))
|
||||
else if (Unit* pTarget = SelectTarget(SELECT_TARGET_RANDOM, 0, 100, true))
|
||||
DoCast(pTarget, SPELL_CRYSTAL_CHAINS);
|
||||
uiCrystalChainsCrystalizeTimer = DUNGEON_MODE(30*IN_MILLISECONDS, 11*IN_MILLISECONDS);
|
||||
} else uiCrystalChainsCrystalizeTimer -= diff;
|
||||
@@ -208,11 +208,11 @@ class containment_sphere : public GameObjectScript
|
||||
public:
|
||||
containment_sphere() : GameObjectScript("containment_sphere") { }
|
||||
|
||||
bool OnGossipHello(Player* /*pPlayer*/, GameObject *pGO)
|
||||
bool OnGossipHello(Player* /*pPlayer*/, GameObject* pGO)
|
||||
{
|
||||
InstanceScript *pInstance = pGO->GetInstanceScript();
|
||||
|
||||
Creature *pKeristrasza = Unit::GetCreature(*pGO, pInstance ? pInstance->GetData64(DATA_KERISTRASZA) : 0);
|
||||
Creature* pKeristrasza = Unit::GetCreature(*pGO, pInstance ? pInstance->GetData64(DATA_KERISTRASZA) : 0);
|
||||
if (pKeristrasza && pKeristrasza->isAlive())
|
||||
{
|
||||
// maybe these are hacks :(
|
||||
|
||||
@@ -184,14 +184,14 @@ public:
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (Unit *pTarget = SelectTarget(SELECT_TARGET_RANDOM, 0))
|
||||
if (Unit* pTarget = SelectTarget(SELECT_TARGET_RANDOM, 0))
|
||||
Summoned->AI()->AttackStart(pTarget);
|
||||
return Summoned->GetGUID();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
void SummonedCreatureDespawn(Creature *summon)
|
||||
void SummonedCreatureDespawn(Creature* summon)
|
||||
{
|
||||
if (summon->isAlive())
|
||||
return;
|
||||
@@ -303,7 +303,7 @@ public:
|
||||
|
||||
if (uiIceNovaTimer <= diff)
|
||||
{
|
||||
if (Unit *pTarget = SelectTarget(SELECT_TARGET_RANDOM, 0))
|
||||
if (Unit* pTarget = SelectTarget(SELECT_TARGET_RANDOM, 0))
|
||||
{
|
||||
DoCast(pTarget, SPELL_ICE_NOVA, false);
|
||||
uiCooldown = 1500;
|
||||
@@ -313,7 +313,7 @@ public:
|
||||
|
||||
if (uiGravityWellTimer <= diff)
|
||||
{
|
||||
if (Unit *pTarget = me->getVictim())
|
||||
if (Unit* pTarget = me->getVictim())
|
||||
{
|
||||
DoCast(pTarget, SPELL_GRAVITY_WELL);
|
||||
uiCooldown = 6*IN_MILLISECONDS;
|
||||
@@ -323,7 +323,7 @@ public:
|
||||
|
||||
if (uiFireBombTimer <= diff)
|
||||
{
|
||||
if (Unit *pTarget = SelectTarget(SELECT_TARGET_RANDOM, 0))
|
||||
if (Unit* pTarget = SelectTarget(SELECT_TARGET_RANDOM, 0))
|
||||
{
|
||||
DoCast(pTarget, SPELL_FIREBOMB, false);
|
||||
uiCooldown = 2*IN_MILLISECONDS;
|
||||
|
||||
@@ -61,7 +61,7 @@ public:
|
||||
|
||||
struct boss_ormorokAI : public ScriptedAI
|
||||
{
|
||||
boss_ormorokAI(Creature *c) : ScriptedAI(c)
|
||||
boss_ormorokAI(Creature* c) : ScriptedAI(c)
|
||||
{
|
||||
pInstance = c->GetInstanceScript();
|
||||
}
|
||||
@@ -181,7 +181,7 @@ public:
|
||||
Creature* Crystalline_Tangler = me->SummonCreature(MOB_CRYSTALLINE_TANGLER, me->GetPositionX(), me->GetPositionY(), me->GetPositionZ(), me->GetOrientation(), TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 1000);
|
||||
if (Crystalline_Tangler)
|
||||
{
|
||||
Unit *pTarget = NULL;
|
||||
Unit* pTarget = NULL;
|
||||
uint8 Healer = 0;
|
||||
for (uint8 j = 1; j <= 4; j++)
|
||||
{
|
||||
@@ -234,7 +234,7 @@ public:
|
||||
|
||||
struct mob_crystal_spikeAI : public Scripted_NoMovementAI
|
||||
{
|
||||
mob_crystal_spikeAI(Creature *c) : Scripted_NoMovementAI(c)
|
||||
mob_crystal_spikeAI(Creature* c) : Scripted_NoMovementAI(c)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -277,7 +277,7 @@ public:
|
||||
|
||||
struct mob_crystalline_tanglerAI : public ScriptedAI
|
||||
{
|
||||
mob_crystalline_tanglerAI(Creature *c) : ScriptedAI(c) {}
|
||||
mob_crystalline_tanglerAI(Creature* c) : ScriptedAI(c) {}
|
||||
|
||||
uint32 uiRootsTimer;
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ public:
|
||||
|
||||
struct boss_commander_kolurgAI : public ScriptedAI
|
||||
{
|
||||
boss_commander_kolurgAI(Creature *c) : ScriptedAI(c) {}
|
||||
boss_commander_kolurgAI(Creature* c) : ScriptedAI(c) {}
|
||||
|
||||
void Reset() {}
|
||||
void EnterCombat(Unit* /*who*/) {}
|
||||
|
||||
@@ -49,7 +49,7 @@ public:
|
||||
|
||||
struct boss_commander_stoutbeardAI : public ScriptedAI
|
||||
{
|
||||
boss_commander_stoutbeardAI(Creature *c) : ScriptedAI(c) {}
|
||||
boss_commander_stoutbeardAI(Creature* c) : ScriptedAI(c) {}
|
||||
|
||||
void Reset() {}
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
|
||||
Reference in New Issue
Block a user