Core/Script: Clean-Up in Scripts.

Creature* c -> Creature* creature
Creature* _Creature -> Creature* creature
Creature* Creature -> Creature* creature

Signed-off-by: Gyx <[email protected]>
This commit is contained in:
Gyx
2012-03-16 19:21:47 +08:00
parent ef53bde176
commit fcbb222aca
45 changed files with 129 additions and 126 deletions
@@ -792,7 +792,7 @@ public:
struct npc_phantom_hallucinationAI : public npc_phantom_mage::npc_phantom_mageAI
{
npc_phantom_hallucinationAI(Creature* c) : npc_phantom_mage::npc_phantom_mageAI(c)
npc_phantom_hallucinationAI(Creature* creature) : npc_phantom_mage::npc_phantom_mageAI(creature)
{
}
@@ -63,7 +63,7 @@ public:
struct boss_anubrekhanAI : public BossAI
{
boss_anubrekhanAI(Creature* c) : BossAI(c, BOSS_ANUBREKHAN) {}
boss_anubrekhanAI(Creature* creature) : BossAI(creature, BOSS_ANUBREKHAN) {}
bool hasTaunted;
@@ -89,7 +89,7 @@ public:
struct boss_four_horsemenAI : public BossAI
{
boss_four_horsemenAI(Creature* c) : BossAI(c, BOSS_HORSEMEN)
boss_four_horsemenAI(Creature* creature) : BossAI(creature, BOSS_HORSEMEN)
{
id = Horsemen(0);
for (uint8 i = 0; i < 4; ++i)
@@ -57,7 +57,7 @@ public:
struct boss_gluthAI : public BossAI
{
boss_gluthAI(Creature* c) : BossAI(c, BOSS_GLUTH)
boss_gluthAI(Creature* creature) : BossAI(creature, BOSS_GLUTH)
{
// Do not let Gluth be affected by zombies' debuff
me->ApplySpellImmune(0, IMMUNITY_ID, SPELL_INFECTED_WOUND, true);
@@ -45,7 +45,7 @@ public:
struct boss_grobbulusAI : public BossAI
{
boss_grobbulusAI(Creature* c) : BossAI(c, BOSS_GROBBULUS)
boss_grobbulusAI(Creature* creature) : BossAI(creature, BOSS_GROBBULUS)
{
me->ApplySpellImmune(0, IMMUNITY_ID, SPELL_POISON_CLOUD_ADD, true);
}
@@ -57,7 +57,7 @@ public:
struct boss_heiganAI : public BossAI
{
boss_heiganAI(Creature* c) : BossAI(c, BOSS_HEIGAN) {}
boss_heiganAI(Creature* creature) : BossAI(creature, BOSS_HEIGAN) {}
uint32 eruptSection;
bool eruptDirection;
@@ -266,7 +266,7 @@ public:
struct boss_kelthuzadAI : public BossAI
{
boss_kelthuzadAI(Creature* c) : BossAI(c, BOSS_KELTHUZAD), spawns(c)
boss_kelthuzadAI(Creature* creature) : BossAI(creature, BOSS_KELTHUZAD), spawns(creature)
{
uiFaction = me->getFaction();
}
@@ -68,7 +68,7 @@ public:
struct boss_maexxnaAI : public BossAI
{
boss_maexxnaAI(Creature* c) : BossAI(c, BOSS_MAEXXNA) {}
boss_maexxnaAI(Creature* creature) : BossAI(creature, BOSS_MAEXXNA) {}
bool enraged;
@@ -159,7 +159,7 @@ public:
struct mob_webwrapAI : public NullCreatureAI
{
mob_webwrapAI(Creature* c) : NullCreatureAI(c), victimGUID(0) {}
mob_webwrapAI(Creature* creature) : NullCreatureAI(creature), victimGUID(0) {}
uint64 victimGUID;
@@ -75,7 +75,7 @@ public:
struct boss_nothAI : public BossAI
{
boss_nothAI(Creature* c) : BossAI(c, BOSS_NOTH) {}
boss_nothAI(Creature* creature) : BossAI(creature, BOSS_NOTH) {}
uint32 waveCount, balconyCount;
@@ -62,7 +62,7 @@ public:
struct boss_patchwerkAI : public BossAI
{
boss_patchwerkAI(Creature* c) : BossAI(c, BOSS_PATCHWERK) {}
boss_patchwerkAI(Creature* creature) : BossAI(creature, BOSS_PATCHWERK) {}
bool Enraged;
@@ -64,7 +64,7 @@ public:
struct boss_razuviousAI : public BossAI
{
boss_razuviousAI(Creature* c) : BossAI(c, BOSS_RAZUVIOUS) {}
boss_razuviousAI(Creature* creature) : BossAI(creature, BOSS_RAZUVIOUS) {}
void KilledUnit(Unit* /*victim*/)
{
@@ -81,7 +81,7 @@ public:
struct boss_sapphironAI : public BossAI
{
boss_sapphironAI(Creature* c) : BossAI(c, BOSS_SAPPHIRON)
boss_sapphironAI(Creature* creature) : BossAI(creature, BOSS_SAPPHIRON)
, phase(PHASE_NULL)
{
map = me->GetMap();
@@ -120,7 +120,7 @@ public:
struct boss_thaddiusAI : public BossAI
{
boss_thaddiusAI(Creature* c) : BossAI(c, BOSS_THADDIUS)
boss_thaddiusAI(Creature* creature) : BossAI(creature, BOSS_THADDIUS)
{
// init is a bit tricky because thaddius shall track the life of both adds, but not if there was a wipe
// and, in particular, if there was a crash after both adds were killed (should not respawn)
@@ -849,7 +849,7 @@ public:
struct npc_nexus_drake_hatchlingAI : public FollowerAI //The spell who makes the npc follow the player is missing, also we can use FollowerAI!
{
npc_nexus_drake_hatchlingAI(Creature* c) : FollowerAI(c) {}
npc_nexus_drake_hatchlingAI(Creature* creature) : FollowerAI(creature) {}
uint64 HarpoonerGUID;
bool WithRedDragonBlood;
+1 -1
View File
@@ -709,7 +709,7 @@ class npc_hyldsmeet_protodrake : public CreatureScript
class npc_hyldsmeet_protodrakeAI : public CreatureAI
{
public:
npc_hyldsmeet_protodrakeAI(Creature* c) : CreatureAI(c), _accessoryRespawnTimer(0), _vehicleKit(c->GetVehicleKit()) {}
npc_hyldsmeet_protodrakeAI(Creature* creature) : CreatureAI(creature), _accessoryRespawnTimer(0), _vehicleKit(creature->GetVehicleKit()) {}
void PassengerBoarded(Unit* who, int8 /*seat*/, bool apply)
{