Core/Spells: fixed aura effects not being able to crit and make their crit chance getting calculated in real time instead of using a clipped value

This commit is contained in:
Ovahlord
2019-06-15 15:52:21 +02:00
parent c283d71d33
commit 480068bee7

View File

@@ -5668,7 +5668,7 @@ void AuraEffect::HandlePeriodicDamageAurasTick(Unit* target, Unit* caster) const
damage = target->SpellDamageBonusTaken(caster, GetSpellInfo(), damage, DOT);
bool crit = false;
crit = roll_chance_f(isAreaAura ? caster->GetUnitSpellCriticalChance(target, m_spellInfo, m_spellInfo->GetSchoolMask()) : GetCritChance());
crit = roll_chance_f(caster->GetUnitSpellCriticalChance(target, m_spellInfo, m_spellInfo->GetSchoolMask()));
if (crit)
damage = caster->SpellCriticalDamageBonus(m_spellInfo, damage, target);