Ru-MaNGOS

Ru-MaNGOS (http://mangos.ytdb.ru/index.php)
-   Патчи (http://mangos.ytdb.ru/forumdisplay.php?f=6)
-   -   Anti-Magic Shell (http://mangos.ytdb.ru/showthread.php?t=5390)

Amaru 25.04.2012 09:03

Anti-Magic Shell
 
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_SCHOOL);
        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


Текущее время: 03:43. Часовой пояс GMT +3.

ru-mangos.ru - Русское сообщество MaNGOS