Ru-MaNGOS

Ru-MaNGOS (http://mangos.ytdb.ru/index.php)
-   Принятые патчи (http://mangos.ytdb.ru/forumdisplay.php?f=5)
-   -   [11607][mini fix] Animal Blood debuf (http://mangos.ytdb.ru/showthread.php?t=2853)

Den 07.11.2010 22:56

[11607][mini fix] Animal Blood debuf
 
Спелл http://www.wowhead.com/spell=46221 должен отображатся как дебаф.
Поправка:

PHP код:

diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp
index 5aa713f
..40c6f42 100644
--- a/src/game/SpellMgr.cpp
+++ b/src/game/SpellMgr.cpp
@@ -819,11 +819,18 @@ bool IsPositiveEffect(uint32 spellIdSpellEffectIndex effIndex)
                     }
                 }   break;
                 case 
SPELL_AURA_FORCE_REACTION:
-                    if(
spellproto->Id==42792)               // Recently Dropped Flag (prevent cancel)
-                        return false;
-                    break;
-                default:
-                    break;
+                {
+                    switch(
spellproto->Id)
+                    {
+                        case 
42792:                         // Recently Dropped Flag (prevent cancel)                            
+                        case 46221:                         // Animal Blood
+                        case 46222:                         // Animal Blood
+                            return false;                        
+                        default:
+                            break;                         
+                    }
+                    break;                    
+                }                                        
             }
             break;
         } 


Den 15.05.2011 15:53

А что , разве так не правильно ?

Код:

diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp
index 0aa46bb..381d908 100644
--- a/src/game/SpellMgr.cpp
+++ b/src/game/SpellMgr.cpp
@@ -842,11 +842,18 @@ bool IsPositiveEffect(SpellEntry const *spellproto, SpellEffectIndex effIndex)
                    }
                }  break;
                case SPELL_AURA_FORCE_REACTION:
-                    if(spellproto->Id==42792)              // Recently Dropped Flag (prevent cancel)
-                        return false;
-                    break;
-                default:
+                {
+                    switch (spellproto->Id)
+                    {
+                        case 42792:                        // Recently Dropped Flag (prevent cancel)
+                        case 46221:                        // Animal Blood
+                            return false;
+                        default:
+                            break;
+                    }
                    break;
+                }
+                break;
            }
            break;
        }


Vladimir 05.06.2011 19:16

В [11607]. Спасибо :)


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

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