aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2016-06-18 05:44:48 -0300
committerAokromes <Aokromes@users.noreply.github.com>2016-06-18 10:44:48 +0200
commite881afcd1c41026a951c627abd5d33fb585caf2e (patch)
tree88a597f948c7edadb433b63377d76f4461059388 /src
parentad6cd7077790ae827c84e2b684739d54b517b0ce (diff)
Core/Spell: Fix eviscerate AP coefficient, should be fixed, not random (#17085)
http://www.wowace.com/addons/dr-damage/files/8956-r1388/
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/SpellEffects.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
index 8a16812034c..2a085acda81 100644
--- a/src/server/game/Spells/SpellEffects.cpp
+++ b/src/server/game/Spells/SpellEffects.cpp
@@ -556,7 +556,7 @@ void Spell::EffectSchoolDMG(SpellEffIndex effIndex)
if (uint32 combo = player->GetComboPoints())
{
float ap = m_caster->GetTotalAttackPowerValue(BASE_ATTACK);
- damage += irand(int32(ap * combo * 0.03f), int32(ap * combo * 0.07f));
+ damage += std::lroundf(ap * combo * 0.07f);
// Eviscerate and Envenom Bonus Damage (item set effect)
if (m_caster->HasAura(37169))