*Fix the bug that Sacred Shield doesn't increase Flash of Light critical chance.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-06-10 17:51:26 +02:00
parent d080d704fe
commit 926747b57e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1052,7 +1052,7 @@ void Spell::DoAllEffectOnTarget(TargetInfo *target)
// Do healing and triggers
if (m_healing > 0)
{
bool crit = caster->isSpellCrit(NULL, m_spellInfo, m_spellSchoolMask);
bool crit = caster->isSpellCrit(unitTarget, m_spellInfo, m_spellSchoolMask);
uint32 addhealth = m_healing;
if (crit)
{
+1 -1
View File
@@ -9233,7 +9233,7 @@ bool Unit::isSpellCrit(Unit *pVictim, SpellEntry const *spellProto, SpellSchoolM
{
AuraEffect *aura = pVictim->GetDummyAura(58597);
if (aura && aura->GetCasterGUID() == GetGUID())
crit_chance+=aura->GetAmount();
crit_chance+=aura->GetAmount();
break;
}
break;