[8143] Fixed Aura::IsCritFromAbilityAura

* If not applied critical damage bonus don't clasify tick as critical.

Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
ApoC 2009-07-07 19:23:50 +02:00
parent 5d4b581009
commit 4b4eb0a6d5
2 changed files with 4 additions and 4 deletions

View file

@ -6935,10 +6935,10 @@ bool Aura::IsCritFromAbilityAura(Unit* caster, uint32& damage)
{
if (!(*itr)->isAffectedOnSpell(m_spellProto))
continue;
if (!caster->isSpellCrit(m_target, m_spellProto, GetSpellSchoolMask(m_spellProto)))
break;
if (caster->isSpellCrit(m_target, m_spellProto, GetSpellSchoolMask(m_spellProto)))
damage = caster->SpellCriticalDamageBonus(m_spellProto, damage, m_target);
damage = caster->SpellCriticalDamageBonus(m_spellProto, damage, m_target);
return true;
}
return false;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "8142"
#define REVISION_NR "8143"
#endif // __REVISION_NR_H__