diff options
| author | maximius <none@none> | 2009-11-17 20:13:41 -0800 |
|---|---|---|
| committer | maximius <none@none> | 2009-11-17 20:13:41 -0800 |
| commit | 980a943c6772f37428c9dfca53e1d530ccecb5aa (patch) | |
| tree | 9e196078d8f0d232dd31a1078f2e796ec16b3897 /src/game/SpellEffects.cpp | |
| parent | 308c833a1be575aff04728fbee2fa03aedc76fab (diff) | |
*Proper Diseases and Death Strike disease count, thanks lobuz
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
| -rw-r--r-- | src/game/SpellEffects.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 022850c2451..04a93469e9b 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -2001,19 +2001,7 @@ void Spell::EffectDummy(uint32 i) // Death strike if (m_spellInfo->SpellFamilyFlags[0] & 0x00000010) { - uint32 count = 0; - Unit::AuraMap const& auras = unitTarget->GetAuras(); - for (Unit::AuraMap::const_iterator itr = auras.begin(); itr!=auras.end(); ++itr) - { - if(itr->second->GetSpellProto()->Dispel == DISPEL_DISEASE && - itr->second->GetCasterGUID() == m_caster->GetGUID()) - { - ++count; - // max. 15% - if(count == 3) - break; - } - } + uint32 count = unitTarget->GetDiseasesByCaster(m_caster->GetGUID()); int32 bp = count * m_caster->GetMaxHealth() * m_spellInfo->DmgMultiplier[0] / 100; // Improved Death Strike if (AuraEffect const * aurEff = m_caster->GetAuraEffect(SPELL_AURA_ADD_PCT_MODIFIER, SPELLFAMILY_DEATHKNIGHT, 2751, 0)) |
