aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellEffects.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-06-13 17:28:38 +0200
committerQAston <none@none>2009-06-13 17:28:38 +0200
commit2617dc1b2f8acfaa7284041c66d2334f634e8be5 (patch)
tree2d01153be6f85695e46cd6b2f37cab36ea00ee3e /src/game/SpellEffects.cpp
parent8c4861b40f1297bea69983962dfa2ca6f58256a0 (diff)
*Fix Obliterate disease bonus.
--HG-- branch : trunk
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;