aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-28 17:47:12 -0600
committermegamage <none@none>2009-03-28 17:47:12 -0600
commitf69c48202febf28b1a7dddf147d0e1ad0a3e6052 (patch)
tree7522e76eee1f235f130dd6733b396fa993999f4e /src
parent3256b75ac56cea5f88b8b190041e3289de8bb756 (diff)
[7571] Implemented AttributesEx4 & 0x40 - SPELL_ATTR_EX4_NOT_STEALABLE Author: arrai
Flag has been verified by comparing 3.0.3 AttributesEx4 value of spell 55336 with 3.0.9 one --HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SharedDefines.h2
-rw-r--r--src/game/SpellEffects.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/game/SharedDefines.h b/src/game/SharedDefines.h
index 6c28aeea2c7..64973bcd080 100644
--- a/src/game/SharedDefines.h
+++ b/src/game/SharedDefines.h
@@ -358,7 +358,7 @@ enum SpellCategory
#define SPELL_ATTR_EX4_UNK3 0x00000008 // 3
#define SPELL_ATTR_EX4_UNK4 0x00000010 // 4 This will no longer cause guards to attack on use??
#define SPELL_ATTR_EX4_UNK5 0x00000020 // 5
-#define SPELL_ATTR_EX4_UNK6 0x00000040 // 6
+#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_UNK9 0x00000200 // 9
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index d905eee7032..7e24bc4f81d 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -6274,7 +6274,7 @@ void Spell::EffectStealBeneficialBuff(uint32 i)
if (aur && (1<<aur->GetSpellProto()->Dispel) & dispelMask)
{
// Need check for passive? this
- if (aur->IsPositive() && !aur->IsPassive())
+ if (aur->IsPositive() && !aur->IsPassive() && !(aur->GetSpellProto()->AttributesEx4 & SPELL_ATTR_EX4_NOT_STEALABLE))
steal_list.push_back(aur);
}
}