YTDB

YTDB (http://ytdb.ru/index.php)
-   Патчи (http://ytdb.ru/forumdisplay.php?f=26)
-   -   [patch] Lifebloom (http://ytdb.ru/showthread.php?t=2666)

PSZ 25.01.2010 17:00

[patch] Lifebloom
 
Сейчас при 2-х и более стаках Lifebloom на цели финальный хил не умножается на количество стаков. Должен умножаться. http://www.wowwiki.com/Lifebloom "Each Lifebloom in a stack will bloom if the stack blooms, so if a 3-stack expires the direct heal will be three times that of a single Lifebloom, and the mana returned will likewise be for the whole stack."
Автор: наверное hunuza (после написания патча наткнулся на вот это: http://getmangos.com/community/showt...ll=1#post80950)
Патч:
Код:

diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 9636fda..b51ec65 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -2718,8 +2718,7 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
                    // final heal
                    if(m_target->IsInWorld() && m_stackAmount > 0)
                    {
-                        int32 amount = m_modifier.m_amount / m_stackAmount;
-                        m_target->CastCustomSpell(m_target, 33778, &amount, NULL, NULL, true, NULL, this, GetCasterGUID());
+                        m_target->CastCustomSpell(m_target, 33778, &m_modifier.m_amount, NULL, NULL, true, NULL, this, GetCasterGUID());
 
                        if (Unit* caster = GetCaster())
                        {


PSZ 27.01.2010 09:28

Добавил авторство.


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

YTDB - MaNGOS DataBase