aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-09 15:49:38 -0500
committermegamage <none@none>2009-08-09 15:49:38 -0500
commitbc14ebb1026b596d1bf93c331c8c0baf4c3276d0 (patch)
tree7fdedf7ca142bac97dd4fe91393c56d12fd42153
parentee2a26ee9f572c62bd79aaecaca99aa4238d1285 (diff)
*Fix a typo of fixed damage spells. Thanks to loop69
--HG-- branch : trunk
-rw-r--r--src/game/Unit.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index f02e8917f32..7d6807b7811 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -1283,7 +1283,10 @@ void Unit::CalculateSpellDamageTaken(SpellNonMeleeDamage *damageInfo, int32 dama
return;
if(spellInfo->AttributesEx4 & SPELL_ATTR_EX4_FIXED_DAMAGE)
+ {
+ damageInfo->damage = damage;
return;
+ }
Unit *pVictim = damageInfo->target;
if(!pVictim || !pVictim->isAlive())