[8240] Small additional cleanup comments

This commit is contained in:
VladimirMangos 2009-07-24 23:46:01 +04:00
parent c248c358be
commit aa23cf729c
2 changed files with 4 additions and 4 deletions

View file

@ -5776,19 +5776,19 @@ void Aura::HandleSchoolAbsorb(bool apply, bool Real)
m_modifier.m_amount += (int32)DoneActualBenefit; m_modifier.m_amount += (int32)DoneActualBenefit;
} }
// Shattered Barrier // Ice Barrier (remove effect from Shattered Barrier)
if(!apply && m_spellProto->SpellIconID == 32 && m_spellProto->SpellFamilyName == SPELLFAMILY_MAGE) if(!apply && m_spellProto->SpellIconID == 32 && m_spellProto->SpellFamilyName == SPELLFAMILY_MAGE)
{ {
Unit* caster = GetCaster(); Unit* caster = GetCaster();
if (!((m_removeMode == AURA_REMOVE_BY_DEFAULT && !m_modifier.m_amount) || m_removeMode == AURA_REMOVE_BY_DISPEL)) if (!((m_removeMode == AURA_REMOVE_BY_DEFAULT && !m_modifier.m_amount) || m_removeMode == AURA_REMOVE_BY_DISPEL))
return; return;
if (caster->HasAura(44745,0)) // rank 1 if (caster->HasAura(44745,0)) // Shattered Barrier, rank 1
{ {
if(roll_chance_i(50)) if(roll_chance_i(50))
caster->CastSpell(caster, 55080, true, NULL, this); caster->CastSpell(caster, 55080, true, NULL, this);
} }
else if (caster->HasAura(54787,0)) // rank 2 else if (caster->HasAura(54787,0)) // Shattered Barrier, rank 2
{ {
caster->CastSpell(caster, 55080, true, NULL, this); caster->CastSpell(caster, 55080, true, NULL, this);
} }

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "8239" #define REVISION_NR "8240"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__