diff options
author | Anubisss <none@none> | 2010-05-18 23:48:26 +0200 |
---|---|---|
committer | Anubisss <none@none> | 2010-05-18 23:48:26 +0200 |
commit | a33b26ba0e47147c624c4e33c60919bc2432d4c7 (patch) | |
tree | 2076c5ca9c407c314764e7b72ee5c8c35ebb63e0 | |
parent | 0d4bbd96410dfa6d9d9bf761f26ba7651da38a96 (diff) |
Allow spell Rupture to crits on ticks.
Fixes issue #1796.
--HG--
branch : trunk
-rw-r--r-- | src/game/SpellAuraEffects.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |