diff options
author | Xanadu <none@none> | 2010-03-24 20:35:04 +0100 |
---|---|---|
committer | Xanadu <none@none> | 2010-03-24 20:35:04 +0100 |
commit | 2f17cff295b9933ee6a0bb50b0d7e510521bc1e1 (patch) | |
tree | 8f201d2a4fc9e3605e0b16840904a7ab24338068 /src/game/SpellMgr.cpp | |
parent | 99e186c8303e02d61130113b59e0a6baba30eacf (diff) |
Cleaned and tidied-up the mechanic immunity handler
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellMgr.cpp')
-rw-r--r-- | src/game/SpellMgr.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index 1f0c27494e2..f94f980f7bb 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -939,7 +939,7 @@ bool SpellMgr::_isPositiveEffect(uint32 spellId, uint32 effIndex, bool deep) con bool IsPositiveSpell(uint32 spellId) { - if(!sSpellStore.LookupEntry(spellId)) // non-existing spells such as 61988 (Forbearance) + if(!sSpellStore.LookupEntry(spellId)) // non-existing spells return false; return !(spellmgr.GetSpellCustomAttr(spellId) & SPELL_ATTR_CU_NEGATIVE); } @@ -3783,6 +3783,10 @@ void SpellMgr::LoadSpellCustomAttr() spellInfo->EffectImplicitTargetA[0] = TARGET_UNIT_CASTER; count++; break; + case 25771: // Forbearance - wrong mechanic immunity in DBC since 3.0.x + spellInfo->EffectMiscValue[0] = MECHANIC_IMMUNE_SHIELD; + count++; + break; default: break; } |