mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[8240] Small additional cleanup comments
This commit is contained in:
parent
c248c358be
commit
aa23cf729c
2 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue