[8948] Not check victim at apply SPELL_AURA_MOD_SPELL_CRIT_CHANCE_SCHOOL for ranged spells

In same way as for other cases. For consistance.
This commit is contained in:
VladimirMangos 2009-12-08 21:25:23 +03:00
parent 58551fb582
commit c6bf3a2cdc
2 changed files with 3 additions and 4 deletions

View file

@ -9046,10 +9046,9 @@ bool Unit::isSpellCrit(Unit *pVictim, SpellEntry const *spellProto, SpellSchoolM
case SPELL_DAMAGE_CLASS_RANGED:
{
if (pVictim)
{
crit_chance = GetUnitCriticalChance(attackType, pVictim);
crit_chance+= GetTotalAuraModifierByMiscMask(SPELL_AURA_MOD_SPELL_CRIT_CHANCE_SCHOOL, schoolMask);
}
crit_chance+= GetTotalAuraModifierByMiscMask(SPELL_AURA_MOD_SPELL_CRIT_CHANCE_SCHOOL, schoolMask);
break;
}
default:

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "8947"
#define REVISION_NR "8948"
#endif // __REVISION_NR_H__