Core/Script: Clean-Up in Scripts.
Creature* c -> Creature* creature Signed-off-by: Gyx <[email protected]>
This commit is contained in:
@@ -49,9 +49,9 @@ public:
|
||||
|
||||
struct boss_kriAI : public ScriptedAI
|
||||
{
|
||||
boss_kriAI(Creature* c) : ScriptedAI(c)
|
||||
boss_kriAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
instance = c->GetInstanceScript();
|
||||
instance = creature->GetInstanceScript();
|
||||
}
|
||||
|
||||
InstanceScript* instance;
|
||||
@@ -146,9 +146,9 @@ public:
|
||||
|
||||
struct boss_vemAI : public ScriptedAI
|
||||
{
|
||||
boss_vemAI(Creature* c) : ScriptedAI(c)
|
||||
boss_vemAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
instance = c->GetInstanceScript();
|
||||
instance = creature->GetInstanceScript();
|
||||
}
|
||||
|
||||
InstanceScript* instance;
|
||||
@@ -239,9 +239,9 @@ public:
|
||||
|
||||
struct boss_yaujAI : public ScriptedAI
|
||||
{
|
||||
boss_yaujAI(Creature* c) : ScriptedAI(c)
|
||||
boss_yaujAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
instance = c->GetInstanceScript();
|
||||
instance = creature->GetInstanceScript();
|
||||
}
|
||||
|
||||
InstanceScript* instance;
|
||||
|
||||
@@ -176,9 +176,9 @@ public:
|
||||
|
||||
struct eye_of_cthunAI : public Scripted_NoMovementAI
|
||||
{
|
||||
eye_of_cthunAI(Creature* c) : Scripted_NoMovementAI(c)
|
||||
eye_of_cthunAI(Creature* creature) : Scripted_NoMovementAI(creature)
|
||||
{
|
||||
instance = c->GetInstanceScript();
|
||||
instance = creature->GetInstanceScript();
|
||||
if (!instance)
|
||||
sLog->outError("TSCR: No Instance eye_of_cthunAI");
|
||||
}
|
||||
@@ -480,11 +480,11 @@ public:
|
||||
|
||||
struct cthunAI : public Scripted_NoMovementAI
|
||||
{
|
||||
cthunAI(Creature* c) : Scripted_NoMovementAI(c)
|
||||
cthunAI(Creature* creature) : Scripted_NoMovementAI(creature)
|
||||
{
|
||||
SetCombatMovement(false);
|
||||
|
||||
instance = c->GetInstanceScript();
|
||||
instance = creature->GetInstanceScript();
|
||||
if (!instance)
|
||||
sLog->outError("TSCR: No Instance eye_of_cthunAI");
|
||||
}
|
||||
@@ -935,7 +935,7 @@ public:
|
||||
|
||||
struct eye_tentacleAI : public Scripted_NoMovementAI
|
||||
{
|
||||
eye_tentacleAI(Creature* c) : Scripted_NoMovementAI(c)
|
||||
eye_tentacleAI(Creature* creature) : Scripted_NoMovementAI(creature)
|
||||
{
|
||||
if (Creature* pPortal = me->SummonCreature(MOB_SMALL_PORTAL, *me, TEMPSUMMON_CORPSE_DESPAWN))
|
||||
{
|
||||
@@ -1008,7 +1008,7 @@ public:
|
||||
|
||||
struct claw_tentacleAI : public Scripted_NoMovementAI
|
||||
{
|
||||
claw_tentacleAI(Creature* c) : Scripted_NoMovementAI(c)
|
||||
claw_tentacleAI(Creature* creature) : Scripted_NoMovementAI(creature)
|
||||
{
|
||||
SetCombatMovement(false);
|
||||
|
||||
@@ -1118,7 +1118,7 @@ public:
|
||||
|
||||
struct giant_claw_tentacleAI : public Scripted_NoMovementAI
|
||||
{
|
||||
giant_claw_tentacleAI(Creature* c) : Scripted_NoMovementAI(c)
|
||||
giant_claw_tentacleAI(Creature* creature) : Scripted_NoMovementAI(creature)
|
||||
{
|
||||
SetCombatMovement(false);
|
||||
|
||||
@@ -1237,7 +1237,7 @@ public:
|
||||
|
||||
struct giant_eye_tentacleAI : public Scripted_NoMovementAI
|
||||
{
|
||||
giant_eye_tentacleAI(Creature* c) : Scripted_NoMovementAI(c)
|
||||
giant_eye_tentacleAI(Creature* creature) : Scripted_NoMovementAI(creature)
|
||||
{
|
||||
SetCombatMovement(false);
|
||||
|
||||
@@ -1301,7 +1301,7 @@ public:
|
||||
|
||||
struct flesh_tentacleAI : public Scripted_NoMovementAI
|
||||
{
|
||||
flesh_tentacleAI(Creature* c) : Scripted_NoMovementAI(c)
|
||||
flesh_tentacleAI(Creature* creature) : Scripted_NoMovementAI(creature)
|
||||
{
|
||||
SetCombatMovement(false);
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ public:
|
||||
|
||||
struct boss_fankrissAI : public ScriptedAI
|
||||
{
|
||||
boss_fankrissAI(Creature* c) : ScriptedAI(c) {}
|
||||
boss_fankrissAI(Creature* creature) : ScriptedAI(creature) {}
|
||||
|
||||
uint32 MortalWound_Timer;
|
||||
uint32 SpawnHatchlings_Timer;
|
||||
|
||||
@@ -47,7 +47,7 @@ public:
|
||||
|
||||
struct boss_huhuranAI : public ScriptedAI
|
||||
{
|
||||
boss_huhuranAI(Creature* c) : ScriptedAI(c) {}
|
||||
boss_huhuranAI(Creature* creature) : ScriptedAI(creature) {}
|
||||
|
||||
uint32 Frenzy_Timer;
|
||||
uint32 Wyvern_Timer;
|
||||
|
||||
@@ -45,7 +45,7 @@ public:
|
||||
|
||||
struct boss_ouroAI : public ScriptedAI
|
||||
{
|
||||
boss_ouroAI(Creature* c) : ScriptedAI(c) {}
|
||||
boss_ouroAI(Creature* creature) : ScriptedAI(creature) {}
|
||||
|
||||
uint32 Sweep_Timer;
|
||||
uint32 SandBlast_Timer;
|
||||
|
||||
@@ -49,7 +49,7 @@ public:
|
||||
|
||||
struct boss_sarturaAI : public ScriptedAI
|
||||
{
|
||||
boss_sarturaAI(Creature* c) : ScriptedAI(c) {}
|
||||
boss_sarturaAI(Creature* creature) : ScriptedAI(creature) {}
|
||||
|
||||
uint32 WhirlWind_Timer;
|
||||
uint32 WhirlWindRandom_Timer;
|
||||
@@ -192,7 +192,7 @@ public:
|
||||
|
||||
struct mob_sartura_royal_guardAI : public ScriptedAI
|
||||
{
|
||||
mob_sartura_royal_guardAI(Creature* c) : ScriptedAI(c) {}
|
||||
mob_sartura_royal_guardAI(Creature* creature) : ScriptedAI(creature) {}
|
||||
|
||||
uint32 WhirlWind_Timer;
|
||||
uint32 WhirlWindRandom_Timer;
|
||||
|
||||
@@ -63,7 +63,7 @@ public:
|
||||
|
||||
struct boss_skeramAI : public ScriptedAI
|
||||
{
|
||||
boss_skeramAI(Creature* c) : ScriptedAI(c)
|
||||
boss_skeramAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
IsImage = false;
|
||||
}
|
||||
|
||||
@@ -61,9 +61,9 @@ EndScriptData */
|
||||
|
||||
struct boss_twinemperorsAI : public ScriptedAI
|
||||
{
|
||||
boss_twinemperorsAI(Creature* c): ScriptedAI(c)
|
||||
boss_twinemperorsAI(Creature* creature): ScriptedAI(creature)
|
||||
{
|
||||
instance = c->GetInstanceScript();
|
||||
instance = creature->GetInstanceScript();
|
||||
}
|
||||
|
||||
InstanceScript* instance;
|
||||
|
||||
@@ -86,7 +86,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
aqsentinelAI(Creature* c) : ScriptedAI(c)
|
||||
aqsentinelAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
ClearBuddyList();
|
||||
abselected = 0; // just initialization of variable
|
||||
|
||||
Reference in New Issue
Block a user