*Implement SPELL_ATTR_EX4_FIXED_DAMAGE

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-08 14:27:30 -05:00
parent fdade24355
commit edfba5caa3
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -359,7 +359,7 @@ enum SpellCategory
#define SPELL_ATTR_EX4_UNK5 0x00000020 // 5 #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_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_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_UNK9 0x00000200 // 9
#define SPELL_ATTR_EX4_SPELL_VS_EXTEND_COST 0x00000400 // 10 Rogue Shiv have this flag #define SPELL_ATTR_EX4_SPELL_VS_EXTEND_COST 0x00000400 // 10 Rogue Shiv have this flag
#define SPELL_ATTR_EX4_UNK11 0x00000800 // 11 #define SPELL_ATTR_EX4_UNK11 0x00000800 // 11
+3
View File
@@ -1282,6 +1282,9 @@ void Unit::CalculateSpellDamageTaken(SpellNonMeleeDamage *damageInfo, int32 dama
if (damage < 0) if (damage < 0)
return; return;
if(spellInfo->AttributesEx4 & SPELL_ATTR_EX4_FIXED_DAMAGE)
return;
Unit *pVictim = damageInfo->target; Unit *pVictim = damageInfo->target;
if(!pVictim || !pVictim->isAlive()) if(!pVictim || !pVictim->isAlive())
return; return;