From a33b26ba0e47147c624c4e33c60919bc2432d4c7 Mon Sep 17 00:00:00 2001 From: Anubisss Date: Tue, 18 May 2010 23:48:26 +0200 Subject: Allow spell Rupture to crits on ticks. Fixes issue #1796. --HG-- branch : trunk --- src/game/SpellAuraEffects.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/game/SpellAuraEffects.cpp b/src/game/SpellAuraEffects.cpp index 65b47e7c228..2a7bd8fd73e 100644 --- a/src/game/SpellAuraEffects.cpp +++ b/src/game/SpellAuraEffects.cpp @@ -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; } -- cgit v1.2.3