Тема: Anti-Magic Shell
Показать сообщение отдельно
Старый 25.04.2012, 09:03   #1
Amaru
MaNGOS Dev
 
Регистрация: 16.01.2011
Сообщений: 262
Сказал(а) спасибо: 57
Поблагодарили 73 раз(а) в 59 сообщениях
Amaru На верном пути
По умолчанию 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
Amaru вне форума   Ответить с цитированием