*Fix Improved Moonkin Form and Blood Boil disease bonus.
--HG-- branch : trunk
This commit is contained in:
1 parent
c86bdd2d40
commit
c3b93baf49
3 files changed
+38
-16
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user