Allow spell Rupture to crits on ticks.
Fixes issue #1796. --HG-- branch : trunk
This commit is contained in:
@@ -1163,6 +1163,12 @@ bool AuraEffect::IsPeriodicTickCrit(Unit * target, Unit const * caster) const
|
|||||||
if ((*itr)->IsAffectedOnSpell(m_spellProto) && caster->isSpellCrit(target, m_spellProto, GetSpellSchoolMask(m_spellProto)))
|
if ((*itr)->IsAffectedOnSpell(m_spellProto) && caster->isSpellCrit(target, m_spellProto, GetSpellSchoolMask(m_spellProto)))
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
// Rupture - since 3.3.3 can crit
|
||||||
|
if (AuraEffect *AuraRupture = target->GetAuraEffect(SPELL_AURA_PERIODIC_DAMAGE, SPELLFAMILY_ROGUE, 0x100000, 0x0, 0x0, caster->GetGUID()))
|
||||||
|
{
|
||||||
|
if (caster->isSpellCrit(target, m_spellProto, GetSpellSchoolMask(m_spellProto)))
|
||||||
|
return true;
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user