Allow spell Rupture to crits on ticks.

Fixes issue #1796.

--HG--
branch : trunk
This commit is contained in:
Anubisss
2010-05-18 23:48:26 +02:00
parent 0d4bbd9641
commit a33b26ba0e
+6
View File
@@ -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)))
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;
}