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);
|
bool crit = IsPeriodicTickCrit(target, caster);
|
||||||
if (crit)
|
if (crit)
|
||||||
{
|
|
||||||
damage = caster->SpellCriticalDamageBonus(m_spellProto, damage, target);
|
damage = caster->SpellCriticalDamageBonus(m_spellProto, damage, target);
|
||||||
damage -= target->GetSpellCritDamageReduction(damage);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Reduce damage from resilience for players and pets only.
|
// Reduce damage from resilience for players and pets only.
|
||||||
// As of patch 3.3 pets inherit 100% of master resilience.
|
// 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);
|
bool crit = IsPeriodicTickCrit(target, caster);
|
||||||
if (crit)
|
if (crit)
|
||||||
{
|
|
||||||
damage = caster->SpellCriticalDamageBonus(m_spellProto, damage, target);
|
damage = caster->SpellCriticalDamageBonus(m_spellProto, damage, target);
|
||||||
damage -= target->GetSpellCritDamageReduction(damage);
|
|
||||||
}
|
|
||||||
|
|
||||||
//Calculate armor mitigation if it is a physical spell
|
//Calculate armor mitigation if it is a physical spell
|
||||||
if (GetSpellSchoolMask(GetSpellProto()) & SPELL_SCHOOL_MASK_NORMAL)
|
if (GetSpellSchoolMask(GetSpellProto()) & SPELL_SCHOOL_MASK_NORMAL)
|
||||||
|
|||||||
Reference in New Issue
Block a user