mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[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:
parent
5d4b581009
commit
4b4eb0a6d5
2 changed files with 4 additions and 4 deletions
|
|
@ -6935,10 +6935,10 @@ bool Aura::IsCritFromAbilityAura(Unit* caster, uint32& damage)
|
||||||
{
|
{
|
||||||
if (!(*itr)->isAffectedOnSpell(m_spellProto))
|
if (!(*itr)->isAffectedOnSpell(m_spellProto))
|
||||||
continue;
|
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 true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8142"
|
#define REVISION_NR "8143"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue