[8242] Propertly use aura target instead aura caster.

That same infact but nore slow for access and less safe.
This commit is contained in:
VladimirMangos 2009-07-25 00:03:48 +04:00
parent 7c2ff6cfcb
commit f6f4b29465
2 changed files with 6 additions and 6 deletions

View file

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

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "8241"
#define REVISION_NR "8242"
#endif // __REVISION_NR_H__