Remove doublecalculation of crit res (fix by dr.tenma)

Fixes issue 2031

--HG--
branch : trunk
This commit is contained in:
click
2010-07-04 21:31:20 +02:00
parent 86df5ec9ad
commit 53f4b517ce
@@ -1311,10 +1311,7 @@ void AuraEffect::PeriodicTick(Unit * target, Unit * caster) const
bool crit = IsPeriodicTickCrit(target, caster);
if (crit)
{
damage = caster->SpellCriticalDamageBonus(m_spellProto, damage, target);
damage -= target->GetSpellCritDamageReduction(damage);
}
// Reduce damage from resilience for players and pets only.
// As of patch 3.3 pets inherit 100% of master resilience.
@@ -1382,10 +1379,7 @@ void AuraEffect::PeriodicTick(Unit * target, Unit * caster) const
bool crit = IsPeriodicTickCrit(target, caster);
if (crit)
{
damage = caster->SpellCriticalDamageBonus(m_spellProto, damage, target);
damage -= target->GetSpellCritDamageReduction(damage);
}
//Calculate armor mitigation if it is a physical spell
if (GetSpellSchoolMask(GetSpellProto()) & SPELL_SCHOOL_MASK_NORMAL)