diff options
author | megamage <none@none> | 2008-10-23 22:04:14 -0500 |
---|---|---|
committer | megamage <none@none> | 2008-10-23 22:04:14 -0500 |
commit | 277334fc41d3c424d9a92c257bb6c80f7592f968 (patch) | |
tree | 1b232087c5ff0e528382e52b1a53f88e00859b8b /src/game/SpellEffects.cpp | |
parent | 0f32ffb90ed4d0fe8ecd00451bb282c38f2164fe (diff) |
[svn] Fix cloak of shadow, can remove fairy fire now.
Add yells to High King Maulgar. Patch provided by riddick.
Script for Prince Malchezaar Doors. Patch provided by BroodWyrm.
Bug fix for Selin Fireheart. Patch provided by BroodWyrm.
Arcane Charges only while on flightpath. Patch provided by SLG.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r-- | src/game/SpellEffects.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 0e47d969975..2807b2602ee 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -1771,12 +1771,10 @@ void Spell::EffectTriggerSpell(uint32 i) for(Unit::AuraMap::iterator iter = Auras.begin(); iter != Auras.end(); ++iter) { // remove all harmful spells on you... - if( // ignore positive and passive auras - !iter->second->IsPositive() && !iter->second->IsPassive() && - // only affect magic spells - iter->second->GetSpellProto()->DmgClass == SPELL_DAMAGE_CLASS_MAGIC && - // ignore immunity persistent spells - !( iter->second->GetSpellProto()->AttributesEx & 0x10000 ) ) + if(// only affect magic spells + iter->second->GetSpellProto()->DmgClass == SPELL_DAMAGE_CLASS_MAGIC + // ignore positive and passive auras + && !iter->second->IsPositive() && !iter->second->IsPassive()) { m_caster->RemoveAurasDueToSpell(iter->second->GetSpellProto()->Id); iter = Auras.begin(); |