Core/Spells: Add ability check in one more place, to prevent other kind of spell reflection.
This commit is contained in:
@@ -529,7 +529,8 @@ m_caster(Caster), m_spellValue(new SpellValue(m_spellInfo))
|
|||||||
// determine reflection
|
// determine reflection
|
||||||
m_canReflect = false;
|
m_canReflect = false;
|
||||||
|
|
||||||
if (m_spellInfo->DmgClass == SPELL_DAMAGE_CLASS_MAGIC && !IsAreaOfEffectSpell(m_spellInfo) && !(m_spellInfo->AttributesEx2 & SPELL_ATTR2_CANT_REFLECTED))
|
// Patch 1.2 notes: Spell Reflection no longer reflects abilities
|
||||||
|
if (m_spellInfo->DmgClass == SPELL_DAMAGE_CLASS_MAGIC && !IsAreaOfEffectSpell(m_spellInfo) && !(m_spellInfo->AttributesEx2 & SPELL_ATTR2_CANT_REFLECTED) && !(m_spellInfo->Attributes & SPELL_ATTR0_ABILITY))
|
||||||
{
|
{
|
||||||
for (int j = 0; j < MAX_SPELL_EFFECTS; ++j)
|
for (int j = 0; j < MAX_SPELL_EFFECTS; ++j)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user