Remove hardcoded value in glyph of smite. Thanks to QAston

--HG--
branch : trunk
This commit is contained in:
spp
2009-12-14 01:44:12 +01:00
parent 5011397fba
commit bd7c6689af
+3 -7
View File
@@ -524,13 +524,9 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx)
else if (m_spellInfo->SpellFamilyFlags[0] & 0x80) else if (m_spellInfo->SpellFamilyFlags[0] & 0x80)
{ {
// Glyph of Smite // Glyph of Smite
if (m_caster->HasAura(55692)) if (AuraEffect * aurEff = m_caster->GetAuraEffect(55692, 0))
{ if (unitTarget->GetAura(SPELL_AURA_PERIODIC_DAMAGE, SPELLFAMILY_PRIEST, 0x100000, 0, 0, m_caster->GetGUID()))
Unit::AuraEffectList const &mPeriodic = unitTarget->GetAurasByType(SPELL_AURA_PERIODIC_DAMAGE); damage += damage * aurEff->GetAmount() / 100;
for (Unit::AuraEffectList::const_iterator i = mPeriodic.begin(); i != mPeriodic.end(); ++i)
if ((*i)->GetSpellProto()->SpellFamilyName == SPELLFAMILY_PRIEST && (*i)->GetSpellProto()->SpellFamilyFlags[0] & 0x100000)
damage += damage / 5; // 20% more damage with smite
}
} }
break; break;