Ru-MaNGOS

Ru-MaNGOS (http://mangos.ytdb.ru/index.php)
-   Принятые патчи (http://mangos.ytdb.ru/forumdisplay.php?f=5)
-   -   [11440][patch] Restore itemset 650 4p bonus affect work (http://mangos.ytdb.ru/showthread.php?t=4313)

Den 07.05.2011 20:53

[11440][patch] Restore itemset 650 4p bonus affect work
 
Код:

diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index ea63078..b567a71 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -9050,6 +9050,8 @@ void SpellAuraHolder::HandleSpellSpecificBoosts(bool apply)
                            spellId1 = 60110;              // Kill Command, Focused Fire rank 1 bonus
                        else if (m_target->HasAura(35030))  // Focused Fire, rank 2
                            spellId1 = 60113;              // Kill Command, Focused Fire rank 2 bonus
+                        else if (m_target->HasAura(37483))  // Improved Kill Command - Item set bonus
+                            m_target->CastSpell(m_target, 37482, true);
                        else
                            return;
                    }
diff --git a/src/game/UnitAuraProcHandler.cpp b/src/game/UnitAuraProcHandler.cpp


Vladimir 08.05.2011 05:43

HandleSpellSpecificBoosts для дополнительных эффектов пока какаялибо аура применена на цель. В данном случае речь идет о касте и лучше это проверять в коде каста. Благо там есть такой кусок кода для размещения.

С этим изменением в [11440]


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

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