mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[8242] Propertly use aura target instead aura caster.
That same infact but nore slow for access and less safe.
This commit is contained in:
parent
7c2ff6cfcb
commit
f6f4b29465
2 changed files with 6 additions and 6 deletions
|
|
@ -5777,19 +5777,19 @@ void Aura::HandleSchoolAbsorb(bool apply, bool Real)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ice Barrier (remove effect from Shattered Barrier)
|
// 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))
|
if (!((m_removeMode == AURA_REMOVE_BY_DEFAULT && !m_modifier.m_amount) || m_removeMode == AURA_REMOVE_BY_DISPEL))
|
||||||
return;
|
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))
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8241"
|
#define REVISION_NR "8242"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue