aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-07-19 01:09:23 +0200
committerQAston <none@none>2009-07-19 01:09:23 +0200
commitb7ac1c253b8e16ecf993df35adbf0e323fa95c08 (patch)
tree0c5709d66481008d0a92faa2799a46bedc22afd6 /src/game/Unit.cpp
parent4af68b87d3aa73ffa42bae38f6029d3d550afe36 (diff)
*Cleanups and fixes in Unrelenting Assault.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 15a52ff62f6..a4bb8ecdeaf 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -9335,7 +9335,7 @@ uint32 Unit::SpellDamageBonus(Unit *pVictim, SpellEntry const *spellProto, uint3
{
coeff = bonus->direct_damage;
if (bonus->ap_bonus > 0)
- DoneTotal+=bonus->ap_dot_bonus * stack * ApCoeffMod * GetTotalAttackPowerValue(
+ DoneTotal+=bonus->ap_bonus * stack * ApCoeffMod * GetTotalAttackPowerValue(
(IsRangedWeaponSpell(spellProto) && spellProto->DmgClass !=SPELL_DAMAGE_CLASS_MELEE)? RANGED_ATTACK : BASE_ATTACK);
}
}
@@ -9810,7 +9810,7 @@ uint32 Unit::SpellHealingBonus(Unit *pVictim, SpellEntry const *spellProto, uint
{
coeff = bonus->direct_damage;
if (bonus->ap_bonus > 0)
- DoneTotal+=bonus->ap_dot_bonus * stack * GetTotalAttackPowerValue(
+ DoneTotal+=bonus->ap_bonus * stack * GetTotalAttackPowerValue(
(IsRangedWeaponSpell(spellProto) && spellProto->DmgClass !=SPELL_DAMAGE_CLASS_MELEE)? RANGED_ATTACK : BASE_ATTACK);
}
}