aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTrisjdc <trisjdc@gmail.com>2014-06-23 19:18:20 +0100
committerTrisjdc <trisjdc@gmail.com>2014-06-23 19:18:20 +0100
commit7a78d60d342a0c24739aa1f0e3a7923a5291b16a (patch)
tree27601aa6a7c5b475da7d3109a16bafd67a0bc9d9 /src
parentb5f42ccc5a003527c9fec45b9cffdd34c0a5800c (diff)
Core/Spells: Cloak of Shadows should not remove physical debuffs
Closes htps://github.com/TrinityCore/TrinityCore/issues/7581, probably others
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/SpellEffects.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
index 7a92a401f69..3cdfe0c6387 100644
--- a/src/server/game/Spells/SpellEffects.cpp
+++ b/src/server/game/Spells/SpellEffects.cpp
@@ -836,13 +836,13 @@ void Spell::EffectTriggerSpell(SpellEffIndex effIndex)
{
// remove all harmful spells on you...
SpellInfo const* spell = iter->second->GetBase()->GetSpellInfo();
- if ((spell->DmgClass == SPELL_DAMAGE_CLASS_MAGIC // only affect magic spells
- || ((spell->GetDispelMask()) & dispelMask))
+ if (((spell->DmgClass == SPELL_DAMAGE_CLASS_MAGIC && spell->GetSchoolMask() != SPELL_SCHOOL_MASK_NORMAL) // only affect magic spells
+ || (spell->GetDispelMask() & dispelMask)) &&
// ignore positive and passive auras
- && !iter->second->IsPositive() && !iter->second->GetBase()->IsPassive())
+ !iter->second->IsPositive() && !iter->second->GetBase()->IsPassive())
{
m_caster->RemoveAura(iter);
- }
+ }s
else
++iter;
}