Ru-MaNGOS

Ru-MaNGOS (http://mangos.ytdb.ru/index.php)
-   Патчи (http://mangos.ytdb.ru/forumdisplay.php?f=6)
-   -   [patch]Vanish (http://mangos.ytdb.ru/showthread.php?t=2301)

Aspro345 29.08.2010 11:22

[patch]Vanish
 
в режиме боя заклинание http://ru.wowhead.com/search?q=%D0%9...0%B5#abilities не вводит в инвиз, исправление:


PHP код:

src/game/SpellAuras.cpp |    ++--
1 files changed2 insertions(+), 2 deletions(-)

diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 59c654d
..b654833 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -3859,+3859,@@ void Aura::HandleModStealth(bool applybool Real)
             }
 
             
// apply full stealth period bonuses only at first stealth aura in stack
-            if(target->GetAurasByType(SPELL_AURA_MOD_STEALTH).size()<=1)
+            if(
target->GetAurasByType(SPELL_AURA_MOD_STEALTH).size()<=2// Vanish also triggering Stealth, but all ok, no double auras here possible
             
{
                 
Unit::AuraList const& mDummyAuras target->GetAurasByType(SPELL_AURA_DUMMY);
                 for(
Unit::AuraList::const_iterator i mDummyAuras.begin();!= mDummyAuras.end(); ++i)
@@ -
3911,+3911,@@ void Aura::HandleModStealth(bool applybool Real)
                 if ((*
i)->GetSpellProto()->SpellIconID == 2114)
                     
target->CastSpell(target31666true);
                 
// Overkill
-                else if ((*i)->GetId() == 58426 && GetSpellProto()->SpellFamilyFlags UI64LIT(0x0000000000400000))
+                else if ((*
i)->GetId() == 58426)//Overkill we should remove anyway
                 
{
                     if (
Auraaura target->GetAura(58427EFFECT_INDEX_0))
                     { 


virusav 29.08.2010 11:24

Используйте теги CODE, поправил первый пост для удобства чтения.


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

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