aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellEffects.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r--src/game/SpellEffects.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 15bdaaeee21..aa4422e2718 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -4309,6 +4309,13 @@ void Spell::SpellDamageWeaponDmg(uint32 i)
}
break;
}
+ case SPELLFAMILY_DEATHKNIGHT:
+ {
+ // Obliterate (12.5% more damage per disease)
+ if (m_spellInfo->SpellFamilyFlags[1] & 0x20000)
+ totalDamagePercentMod *= (float(CalculateDamage(2, unitTarget) * unitTarget->GetDiseasesByCaster(m_caster->GetGUID(), true) / 2) + 100.0f) / 100.f;
+ break;
+ }
}
bool normalized = false;