diff options
author | QAston <none@none> | 2009-07-06 00:51:50 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-07-06 00:51:50 +0200 |
commit | c3b93baf496d4a6762d1adddc2ae804941e9a3f7 (patch) | |
tree | 006658bef475003ba49de36566a5fec86cc6f4cd /src/game/SpellEffects.cpp | |
parent | c86bdd2d40b6444e100fc2c57b452a37ad838951 (diff) |
*Fix Improved Moonkin Form and Blood Boil disease bonus.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r-- | src/game/SpellEffects.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 6aeb5f90869..67b87d7c93e 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -680,6 +680,16 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx) } break; } + case SPELLFAMILY_DEATHKNIGHT: + { + // Blood Boil - bonus for diseased targets + if (m_spellInfo->SpellFamilyFlags[0] & 0x00040000 && unitTarget->GetAura(SPELL_AURA_PERIODIC_DAMAGE, SPELLFAMILY_DEATHKNIGHT, 0, 0, 0x00000002, m_caster->GetGUID())) + { + damage += m_damage / 2; + damage += int32(m_caster->GetTotalAttackPowerValue(RANGED_ATTACK)* 0.035f); + } + break; + } } if(m_originalCaster && damage > 0 && apply_direct_bonus) |