aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authorXanadu <none@none>2010-03-17 16:38:31 +0100
committerXanadu <none@none>2010-03-17 16:38:31 +0100
commite5cbe017f402a8e0f6feccdad42a11ff5ce06361 (patch)
tree803692493038ab0b07f3a854b9560ef5af05dbea /src/game/Unit.cpp
parent4fb7bf3664cfd036b7847bafeeaab5f939a50959 (diff)
Fixed Drain Soul increased damage for targets below 25% HP. Closes issue #394. Closes issue #748. Closes issue #938. Rejoice, new era of server-side spells has begun!
--HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index edbeaf4c9ec..ee18c90e468 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -9965,6 +9965,10 @@ uint32 Unit::SpellDamageBonus(Unit *pVictim, SpellEntry const *spellProto, uint3
break;
}
}
+ // Drain Soul - increased damage for targets under 25 % HP
+ if (spellProto->SpellFamilyFlags[0] & 0x00004000)
+ if (HasAura(200000))
+ DoneTotalMod *= 4;
break;
case SPELLFAMILY_DEATHKNIGHT:
// Improved Icy Touch