mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-05 16:39:08 +01:00
Cleaned and tidied-up the mechanic immunity handler
--HG-- branch : trunk
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user