From 926747b57ec6e8439d5397c57b37d2b2c3ba7b70 Mon Sep 17 00:00:00 2001 From: QAston Date: Wed, 10 Jun 2009 17:51:26 +0200 Subject: [PATCH] *Fix the bug that Sacred Shield doesn't increase Flash of Light critical chance. --HG-- branch : trunk --- src/game/Spell.cpp | 2 +- src/game/Unit.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 7f84e3a1ca..9a79b20192 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -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) { diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 61460dc4f8..b8bcf656b9 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -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;