Scripts: Fixed uninitialized variables, unreferenced parameters and virtual overrides

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-12-14 16:24:59 +01:00
parent f4581f67b8
commit 314376e32c
18 changed files with 33 additions and 28 deletions
@@ -113,7 +113,7 @@ public:
}
}
uint32 GetData(uint32 uiType, uint32 /*uiData*/)
uint32 GetData(uint32 uiType)
{
switch(uiType)
{
@@ -63,7 +63,7 @@ class boss_netherspite : public CreatureScript
public:
boss_netherspite() : CreatureScript("boss_netherspite") { }
CreatureAI* GetAI(Creature *pCreature)
CreatureAI* GetAI(Creature *pCreature) const
{
return new boss_netherspiteAI(pCreature);
}
@@ -662,7 +662,7 @@ public:
for (uint8 i = 0; i < 4; ++i)
{
float x,y,z;
Unit *pTarget;
Unit *pTarget = NULL;
for (uint8 z = 0; z < 6; ++z)
{
pTarget = SelectTarget(SELECT_TARGET_RANDOM, 0, 100, true);
@@ -748,7 +748,7 @@ public:
case TIMER_LEGION_LIGHTNING:
if (!me->IsNonMeleeSpellCasted(false))
{
Unit* pRandomPlayer;
Unit* pRandomPlayer = NULL;
me->RemoveAurasDueToSpell(SPELL_SOUL_FLAY);
for (uint8 z = 0; z < 6; ++z)
@@ -844,7 +844,7 @@ public:
TimerIsDeactivated[TIMER_ORBS_EMPOWER] = true;
break;
case TIMER_ARMAGEDDON: //Phase 4
Unit *pTarget;
Unit *pTarget = NULL;
for (uint8 z = 0; z < 6; ++z)
{
pTarget = SelectTarget(SELECT_TARGET_RANDOM, 0, 100, true);
@@ -70,7 +70,7 @@ public:
{
}
void KilledUnit()
void KilledUnit(Unit* /*victim*/)
{
// When a player, pet or totem gets killed, Lord Kazzak casts this spell to instantly regenerate 70,000 health.
DoCast(me, SPELL_CAPTURESOUL);