Ru-MaNGOS

Ru-MaNGOS (http://mangos.ytdb.ru/index.php)
-   Патчи на рассмотрении (http://mangos.ytdb.ru/forumdisplay.php?f=49)
-   -   Restore itemset 208 8p bonus affect work (http://mangos.ytdb.ru/showthread.php?t=3973)

Den 24.03.2011 21:15

Restore itemset 208 8p bonus affect work
 
PHP код:

diff --git a/src/game/UnitAuraProcHandler.cpp b/src/game/UnitAuraProcHandler.cpp
index bb526b8
..19989ef 100644
--- a/src/game/UnitAuraProcHandler.cpp
+++ b/src/game/UnitAuraProcHandler.cpp
@@ -2797,+2812,23 @@ SpellAuraProcResult Unit::HandleProcTriggerSpellAuraProc(Unit *pVictimuint32 d
                 
//case 19818: break;                        // Double Attack
                 //case 22835: break;                        // Drunken Rage
                 //    trigger_spell_id = 14822; break;
+                // Lawbringer (itemset bonus)
+                case 21747:
+                {
+                    if (!((
Player*)this)->GetGroup())
+                        return 
SPELL_AURA_PROC_FAILED;
+
+                    
float chance;
+
+                    
trigger_spell_id 23544;
+                    
chance 3.0f;
+
+                    if (!
roll_chance_f(chance))
+                        return 
SPELL_AURA_PROC_FAILED;
+
+                    
target this;
+                    break;
+                }
                 case 
23780:                                 // Aegis of Preservation (Aegis of Preservation trinket)
                     
trigger_spell_id 23781;
                     break; 


Den 25.03.2011 21:36

Ошибочка, просто так написано запутано "Паладин получает возможность при каждом удачном ударе ближнего боя восстанавливать 189 to 211 ед. здоровья у своей группы". Проверил на офе, прокает и без группы. Поэтому тут только шанс подправить нужно, и то лучше запихнуть в бд, а ядро не трогать, да ?
Код:

INSERT INTO `spell_proc_event` VALUES (21747, 0x00,  0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 3.000000, 0.000000,  0);


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

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