aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTuxity <kevin.darcel@gmail.com>2012-09-07 14:32:05 +0200
committerTuxity <kevin.darcel@gmail.com>2012-09-07 14:32:05 +0200
commit727369a159f9dd1a44ad65d9a1af241dcbe02c1b (patch)
treebe9cb3ac0ad7b07c794d0fc3386ad6fdc01e490d /src
parent19b400761d011b920de808c80265225096eda7fb (diff)
Core/Spells: DoTs can now crit
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/Auras/SpellAuraEffects.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
index 10ea10fab11..746a0ac238f 100644
--- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp
+++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
@@ -1155,18 +1155,7 @@ void AuraEffect::UpdatePeriodic(Unit* caster)
bool AuraEffect::IsPeriodicTickCrit(Unit* target, Unit const* caster) const
{
ASSERT(caster);
- Unit::AuraEffectList const& mPeriodicCritAuras= caster->GetAuraEffectsByType(SPELL_AURA_ABILITY_PERIODIC_CRIT);
- for (Unit::AuraEffectList::const_iterator itr = mPeriodicCritAuras.begin(); itr != mPeriodicCritAuras.end(); ++itr)
- {
- if ((*itr)->IsAffectingSpell(m_spellInfo) && caster->isSpellCrit(target, m_spellInfo, m_spellInfo->GetSchoolMask()))
- return true;
- }
-
- // Rupture - since 3.3.3 can crit
- if (m_spellInfo->SpellIconID == 500 && m_spellInfo->SpellFamilyName == SPELLFAMILY_ROGUE)
- return caster->isSpellCrit(target, m_spellInfo, m_spellInfo->GetSchoolMask());
-
- return false;
+ return caster->isSpellCrit(target, m_spellInfo, m_spellInfo->GetSchoolMask());
}
bool AuraEffect::IsAffectingSpell(SpellInfo const* spell) const