aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorQAston <none@none>2009-01-09 21:21:04 +0100
committerQAston <none@none>2009-01-09 21:21:04 +0100
commit90a82a81ad5d20d5e7188d6e9d660280f0b1eab4 (patch)
tree34751934847bcd175b6aef77e372e6047c82a453 /src
parentc2ee7cb4d34b0f4f95e8f5b6ea2ec2157f65c8ab (diff)
*Apply SPELL_AURA_MOD_DISPEL_RESIST to spellsteal.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellMgr.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game/SpellMgr.h b/src/game/SpellMgr.h
index 2c659180035..04a9f2c621f 100644
--- a/src/game/SpellMgr.h
+++ b/src/game/SpellMgr.h
@@ -385,12 +385,17 @@ inline bool IsAreaAuraEffect(uint32 effect)
inline bool IsDispelSpell(SpellEntry const *spellInfo)
{
+ //spellsteal is also dispel
if (spellInfo->Effect[0] == SPELL_EFFECT_DISPEL ||
+ spellInfo->Effect[0] == SPELL_EFFECT_STEAL_BENEFICIAL_BUFF ||
spellInfo->Effect[1] == SPELL_EFFECT_DISPEL ||
- spellInfo->Effect[2] == SPELL_EFFECT_DISPEL )
+ spellInfo->Effect[1] == SPELL_EFFECT_STEAL_BENEFICIAL_BUFF ||
+ spellInfo->Effect[2] == SPELL_EFFECT_DISPEL ||
+ spellInfo->Effect[2] == SPELL_EFFECT_STEAL_BENEFICIAL_BUFF)
return true;
return false;
}
+
inline bool isSpellBreakStealth(SpellEntry const* spellInfo)
{
return !(spellInfo->AttributesEx & SPELL_ATTR_EX_NOT_BREAK_STEALTH);