diff options
author | Subv <s.v.h21@hotmail.com> | 2012-04-11 18:53:24 -0500 |
---|---|---|
committer | Subv <s.v.h21@hotmail.com> | 2012-04-11 18:53:24 -0500 |
commit | 2e5962725db3b9a596bede9b067b51588bd6b122 (patch) | |
tree | 36b76505590bda8061dc3f6b63023d85bd2e150c | |
parent | 397ee8ceb549cbfa5de949cd882ddc99cf3ea7c0 (diff) |
Core/Spells: Corrected Rupture critical hits, it wont make other dots (incorrectly) crit any longer
Signed-off-by: Subv <s.v.h21@hotmail.com>
-rwxr-xr-x | src/server/game/Spells/Auras/SpellAuraEffects.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp index 9ab375413fb..0e7090b4bc6 100755 --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp @@ -1231,12 +1231,11 @@ bool AuraEffect::IsPeriodicTickCrit(Unit* target, Unit const* caster) const if ((*itr)->IsAffectedOnSpell(m_spellInfo) && caster->isSpellCrit(target, m_spellInfo, m_spellInfo->GetSchoolMask())) return true; } + // Rupture - since 3.3.3 can crit - if (target->GetAuraEffect(SPELL_AURA_PERIODIC_DAMAGE, SPELLFAMILY_ROGUE, 0x100000, 0x0, 0x0, caster->GetGUID())) - { - if (caster->isSpellCrit(target, m_spellInfo, m_spellInfo->GetSchoolMask())) - return true; - } + if (m_spellInfo->SpellIconID == 500 && m_spellInfo->SpellFamilyName == SPELLFAMILY_ROGUE) + return caster->isSpellCrit(target, m_spellInfo, m_spellInfo->GetSchoolMask()); + return false; } |