diff options
| author | spp <none@none> | 2009-12-14 01:44:12 +0100 | 
|---|---|---|
| committer | spp <none@none> | 2009-12-14 01:44:12 +0100 | 
| commit | bd7c6689af582a048da544f6d1c004e6eca51cad (patch) | |
| tree | 45eae7e21c659b91d2f298902ab3d06148f4938f /src | |
| parent | 5011397fba63cf7f7cb17e640ae592c09f5364a5 (diff) | |
Remove hardcoded value in glyph of smite. Thanks to QAston
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/SpellEffects.cpp | 10 | 
1 files changed, 3 insertions, 7 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 58a3d242e69..afbcf3f867b 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -524,13 +524,9 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx)                  else if (m_spellInfo->SpellFamilyFlags[0] & 0x80)                  {                      // Glyph of Smite -                    if (m_caster->HasAura(55692)) -                    { -                        Unit::AuraEffectList const &mPeriodic = unitTarget->GetAurasByType(SPELL_AURA_PERIODIC_DAMAGE); -                        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 -                    } +                    if (AuraEffect * aurEff = m_caster->GetAuraEffect(55692, 0)) +                        if (unitTarget->GetAura(SPELL_AURA_PERIODIC_DAMAGE, SPELLFAMILY_PRIEST, 0x100000, 0, 0, m_caster->GetGUID())) +                            damage += damage * aurEff->GetAmount() / 100;                  }                  break;  | 
