Ru-MaNGOS

Ru-MaNGOS (http://mangos.ytdb.ru/index.php)
-   Отвергнутые патчи (http://mangos.ytdb.ru/forumdisplay.php?f=50)
-   -   [alt. added 11441] [patch] Spell Soften apply as debuf (http://mangos.ytdb.ru/showthread.php?t=4324)

Den 08.05.2011 11:42

[alt. added 11441] [patch] Spell Soften apply as debuf
 
Должен быть дебафам.

Код:

diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp
index a3229ec..e34ccb0 100644
--- a/src/game/SpellMgr.cpp
+++ b/src/game/SpellMgr.cpp
@@ -812,6 +812,10 @@ bool IsPositiveEffect(SpellEntry const *spellproto, SpellEffectIndex effIndex)
                            return false;
                    }
                    break;
+                case SPELL_AURA_MOD_RESISTANCE:
+                    if (spellproto->Id == 37590)            // Soften
+                        return false;
+                    break;
                case SPELL_AURA_MECHANIC_IMMUNITY:
                {
                    // non-positive immunities


zergtmn 08.05.2011 12:39

Basepoints < 0, можно по ним.

в [11441].


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

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