aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-08 14:27:30 -0500
committermegamage <none@none>2009-08-08 14:27:30 -0500
commitedfba5caa3852a2ab76727d587d6e363109d2a86 (patch)
treecedc59bbe516a0b8d8be6264fb2541b5f4b1f5ec /src/game/Unit.cpp
parentfdade2435546a6804658cf1e2d61865f6df29e0c (diff)
*Implement SPELL_ATTR_EX4_FIXED_DAMAGE
--HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-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 8ecd6d51ea2..d126255047c 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -1282,6 +1282,9 @@ void Unit::CalculateSpellDamageTaken(SpellNonMeleeDamage *damageInfo, int32 dama
if (damage < 0)
return;
+ if(spellInfo->AttributesEx4 & SPELL_ATTR_EX4_FIXED_DAMAGE)
+ return;
+
Unit *pVictim = damageInfo->target;
if(!pVictim || !pVictim->isAlive())
return;