*Fix Improved Moonkin Form and Blood Boil disease bonus.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-07-06 00:51:50 +02:00
parent c86bdd2d40
commit c3b93baf49
3 changed files with 38 additions and 16 deletions

View File

@@ -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)