aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/SharedDefines.h2
-rw-r--r--src/game/Unit.cpp3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/game/SharedDefines.h b/src/game/SharedDefines.h
index dd1f7d2ee12..987eea769f5 100644
--- a/src/game/SharedDefines.h
+++ b/src/game/SharedDefines.h
@@ -359,7 +359,7 @@ enum SpellCategory
#define SPELL_ATTR_EX4_UNK5 0x00000020 // 5
#define SPELL_ATTR_EX4_NOT_STEALABLE 0x00000040 // 6 although such auras might be dispellable, they cannot be stolen
#define SPELL_ATTR_EX4_UNK7 0x00000080 // 7
-#define SPELL_ATTR_EX4_UNK8 0x00000100 // 8
+#define SPELL_ATTR_EX4_FIXED_DAMAGE 0x00000100 // 8 decimate, share damage?
#define SPELL_ATTR_EX4_UNK9 0x00000200 // 9
#define SPELL_ATTR_EX4_SPELL_VS_EXTEND_COST 0x00000400 // 10 Rogue Shiv have this flag
#define SPELL_ATTR_EX4_UNK11 0x00000800 // 11
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;