Ru-MaNGOS

Ru-MaNGOS (http://mangos.ytdb.ru/index.php)
-   Patch-Submissions (http://mangos.ytdb.ru/forumdisplay.php?f=65)
-   -   Fix Flash of Light HoT healing amount with Infusion of Light talent (http://mangos.ytdb.ru/showthread.php?t=6348)

alexluana 18.10.2012 13:13

Fix Flash of Light HoT healing amount with Infusion of Light talent
 
Код:

diff --git "a/C:\\Users\\Axxl\\AppData\\Local\\Temp\\UniA4D7.tmp\\UnitAuraProcHandler-91c2376-left.cpp" "b/E:\\Wow Git Sources\\Wotlk\\cmangos\\src\\game\\UnitAuraProcHandler.cpp"
index 903ec7a..d7090b3 100644
--- "a/C:\\Users\\Axxl\\AppData\\Local\\Temp\\UniA4D7.tmp\\UnitAuraProcHandler-91c2376-left.cpp"
+++ "b/E:\\Wow Git Sources\\Wotlk\\cmangos\\src\\game\\UnitAuraProcHandler.cpp"       
@@ -2096,7 +2096,23 @@ SpellAuraProcResult Unit::HandleDummyAuraProc(Unit* pVictim, uint32 damage, Aura
                }
                // Sacred Shield (talent rank)
                case 53601:
-                {
+                                {                     
+                    if (procSpell && IsFriendlyTo(pVictim))
+                    {
+                        if (procSpell->SpellFamilyFlags & UI64LIT(0x00000000C0000000))                                               
+                        {
+                            if(pVictim->HasAura(53569, EFFECT_INDEX_0) || pVictim->HasAura(53576, EFFECT_INDEX_0))
+                            {
+                              triggered_spell_id = 66922;
+                              basepoints[0] = int32(damage / GetSpellAuraMaxTicks(triggered_spell_id));
+                              if (pVictim->HasAura(53569, EFFECT_INDEX_0))
+                                  basepoints[0] = basepoints[0] >> 1;
+                            }
+                        }
+                        else
+                            return SPELL_AURA_PROC_FAILED;
+                    }
+               
                    // triggered_spell_id in spell data
                    target = this;
                    break;


schmoozerd 18.10.2012 14:11

patch please

alexluana 18.10.2012 23:35

added diff file

alexluana 19.10.2012 02:34

I think I did something wrong...

alexluana 19.10.2012 10:13

ok job done

reposted a v2 inspired by rsa


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

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