Ru-MaNGOS

Ru-MaNGOS (http://mangos.ytdb.ru/index.php)
-   Принятые патчи (http://mangos.ytdb.ru/forumdisplay.php?f=5)
-   -   [10038][patch] Empowered renew (Усиленное обновление) (http://mangos.ytdb.ru/showthread.php?t=1288)

Insider42 28.05.2010 16:53

[10038][patch] Empowered renew (Усиленное обновление)
 
Суть проблемы:
Наносит моментальное лечение дважды

Автор: zergtmn
Код:

diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index a6f2fe4..8cd1dff 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -5975,7 +5975,10 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
                    if (!procSpell)
                        return false;
 
-                    Aura* healingAura = pVictim->GetAura(procSpell->Id, EFFECT_INDEX_0);
+                    if (triggeredByAura->GetEffIndex() != EFFECT_INDEX_1)
+                        return false;
+
+                    Aura* healingAura = pVictim->GetAura(SPELL_AURA_PERIODIC_HEAL, SPELLFAMILY_PRIEST, UI64LIT(0x40), 0, GetGUID());
                    if (!healingAura)
                        return false;


Vladimir 06.06.2010 20:54

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


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

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