PDA

Просмотр полной версии : Anti-Magic Shell


Amaru
25.04.2012, 09:03
Anti-Magic shell should make player immune to harmful debuffs and absorb magic damage.
Currently it makes immune only to DISPEL_MAGIC, but it must also to poisons and curses and other non-dispellable debuffs, such as cyclone

Also, magic suppression talent is removed by stack when shell is casted

Index: Unit.cpp
================================================== =================
--- Unit.cpp (revision 6423)
+++ Unit.cpp (revision 6425)
@@ -7904,9 +7904,10 @@
return true;

// Check for immune to application of harmful magical effects
+ // only Anti-Magic shell has this aura
AuraList const& immuneAuraApply = GetAurasByType(SPELL_AURA_MOD_IMMUNE_AURA_APPLY_SC HOOL);
if (!immuneAuraApply.empty() &&
- spellInfo->Dispel == DISPEL_MAGIC && // Magic debuff)
+ //spellInfo->Dispel == DISPEL_MAGIC && // Magic debuff)
!IsPositiveEffect(spellInfo, index)) // Harmful
{
// Check school

Index: SpellMgr.cpp
================================================== =================
--- SpellMgr.cpp (revision 6423)
+++ SpellMgr.cpp (revision 6425)
@@ -2659,6 +2659,10 @@
// Blood Presence and Blood Presence (triggered)
if (spellInfo_1->SpellIconID == 2636 && spellInfo_2->SpellIconID == 2636)
return false;
+
+ // Anti-Magic Shell and Magic Suppression
+ if (spellInfo_1->SpellIconID == 99 && spellInfo_2->SpellIconID == 99)
+ return false;
}
break;
default:
http://paste2.org/p/1993949