[9491] Restore code commenting style after 9489/9490

Adjust comment style for rest of function and some additional code style cleanup.

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2010-03-01 03:21:59 +01:00
parent 9ba8235649
commit 1f329d2fb3
2 changed files with 77 additions and 73 deletions

View file

@ -2249,6 +2249,7 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
switch(m_spellProto->SpellFamilyName)
{
case SPELLFAMILY_GENERIC:
{
switch(GetId())
{
case 1515: // Tame beast
@ -2313,7 +2314,9 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
return;
}
break;
}
case SPELLFAMILY_WARRIOR:
{
// Overpower
if (m_spellProto->SpellFamilyFlags & UI64LIT(0x0000000000000004))
{
@ -2348,7 +2351,9 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
return;
}
break;
}
case SPELLFAMILY_SHAMAN:
{
// Tidal Force
if (GetId() == 55198)
{
@ -2356,6 +2361,7 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
SpellEntry const* buffEntry = sSpellStore.LookupEntry(55166);
if (!buffEntry)
return;
for(uint32 k = 0; k < buffEntry->StackAmount; ++k)
m_target->CastSpell(m_target, buffEntry, true, NULL, this);
}
@ -2371,6 +2377,7 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
break;
}
}
}
// AT REMOVE
else
{
@ -2416,6 +2423,7 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
if (finalSpelId)
caster->CastSpell(m_target, finalSpelId, true, NULL, this);
return;
}
@ -2476,17 +2484,18 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
// when removing aura from one target due to casting Living Bomb at other.
if (m_duration == 0 || m_removeMode == AURA_REMOVE_BY_DISPEL)
m_target->CastSpell(m_target,m_modifier.m_amount,true,NULL,this);
return;
}
if (m_removeMode == AURA_REMOVE_BY_DEATH)
{
// Stop caster Arcane Missle chanelling on death
if (m_spellProto->SpellFamilyName == SPELLFAMILY_MAGE &&
(m_spellProto->SpellFamilyFlags & UI64LIT(0x0000000000000800)))
if (m_spellProto->SpellFamilyName == SPELLFAMILY_MAGE && (m_spellProto->SpellFamilyFlags & UI64LIT(0x0000000000000800)))
{
if (Unit* caster = GetCaster())
caster->InterruptSpell(CURRENT_CHANNELED_SPELL);
return;
}
}
@ -2500,12 +2509,10 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
{
switch(GetId())
{
// Recently Bandaged
case 11196:
case 11196: // Recently Bandaged
m_target->ApplySpellImmune(GetId(), IMMUNITY_MECHANIC, GetMiscValue(), apply);
return;
// Unstable Power
case 24658:
case 24658: // Unstable Power
{
uint32 spellId = 24659;
if (apply)
@ -2517,13 +2524,13 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
for (uint32 i = 0; i < spell->StackAmount; ++i)
caster->CastSpell(m_target, spellId, true, NULL, NULL, GetCasterGUID());
return;
}
m_target->RemoveAurasDueToSpell(spellId);
return;
}
// Restless Strength
case 24661:
case 24661: // Restless Strength
{
uint32 spellId = 24662;
if (apply)
@ -2532,8 +2539,10 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
Unit* caster = GetCaster();
if (!spell || !caster)
return;
for (uint32 i=0; i < spell->StackAmount; ++i)
caster->CastSpell(m_target, spell->Id, true, NULL, NULL, GetCasterGUID());
return;
}
m_target->RemoveAurasDueToSpell(spellId);
@ -2592,8 +2601,7 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
}
return;
}
//Summon Fire Elemental
case 40133:
case 40133: //Summon Fire Elemental
{
Unit* caster = GetCaster();
if (!caster)
@ -2609,8 +2617,7 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
}
return;
}
//Summon Earth Elemental
case 40132 :
case 40132: //Summon Earth Elemental
{
Unit* caster = GetCaster();
if (!caster)
@ -2626,8 +2633,7 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
}
return;
}
//Dragonmaw Illusion
case 40214 :
case 40214: //Dragonmaw Illusion
{
if (apply)
{
@ -2641,8 +2647,7 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
}
return;
}
// LK Intro VO (1)
case 58204:
case 58204: // LK Intro VO (1)
if (m_target->GetTypeId() == TYPEID_PLAYER)
{
// Play part 1
@ -2653,8 +2658,7 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
m_target->CastSpell(m_target, 58205, true);
}
return;
// LK Intro VO (2)
case 58205:
case 58205: // LK Intro VO (2)
if (m_target->GetTypeId() == TYPEID_PLAYER)
{
// Play part 2

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9490"
#define REVISION_NR "9491"
#endif // __REVISION_NR_H__