Remove doublecalculation of crit res (fix by dr.tenma)
Fixes issue 2031 --HG-- branch : trunk
This commit is contained in:
@@ -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.
|
||||
@@ -1323,7 +1320,7 @@ void AuraEffect::PeriodicTick(Unit * target, Unit * caster) const
|
||||
{
|
||||
if (crit)
|
||||
damage -= modOwner->GetSpellCritDamageReduction(damage);
|
||||
damage -= modOwner->GetSpellDamageReduction(damage);
|
||||
damage -= modOwner->GetSpellDamageReduction(damage);
|
||||
}
|
||||
|
||||
caster->CalcAbsorbResist(target, GetSpellSchoolMask(GetSpellProto()), DOT, damage, &absorb, &resist, m_spellProto);
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user