diff options
-rw-r--r-- | sql/FULL/world_spell_full.sql | 3 | ||||
-rw-r--r-- | sql/updates/5330_world_spell_proc_event.sql | 3 | ||||
-rw-r--r-- | src/game/Unit.cpp | 12 |
3 files changed, 17 insertions, 1 deletions
diff --git a/sql/FULL/world_spell_full.sql b/sql/FULL/world_spell_full.sql index 926adab93f2..27a833b40d9 100644 --- a/sql/FULL/world_spell_full.sql +++ b/sql/FULL/world_spell_full.sql @@ -1534,7 +1534,8 @@ INSERT INTO `spell_proc_event` (`entry`, `SchoolMask`, `SpellFamilyName`, `Spell ( 54821, 0x00, 7, 0x00001000, 0x00000000, 0x00000000, 0x00000010, 0x00000000, 0, 0, 0), -- Glyph of Rake ( 54815, 0x00, 7, 0x00008000, 0x00000000, 0x00000000, 0x00000010, 0x00000000, 0, 0, 0), -- Glyph of Shred ( 54845, 0x00, 7, 0x00000004, 0x00000000, 0x00000000, 0x00010000, 0x00000000, 0, 0, 0), -- Glyph of Starfire -( 56800, 0x00, 8, 0x00800004, 0x00000000, 0x00000000, 0x00000010, 0x00000000, 0, 0, 0); -- Glyph of Backstab +( 56800, 0x00, 8, 0x00800004, 0x00000000, 0x00000000, 0x00000010, 0x00000000, 0, 0, 0), -- Glyph of Backstab +( 54832, 0x00, 7, 0x00000000, 0x00001000, 0x00000000, 0x00004000, 0x00000000, 0, 0, 0); -- Glyph of Innervate -- -------- -- ENCHANT PROC diff --git a/sql/updates/5330_world_spell_proc_event.sql b/sql/updates/5330_world_spell_proc_event.sql new file mode 100644 index 00000000000..ae05ed2dddd --- /dev/null +++ b/sql/updates/5330_world_spell_proc_event.sql @@ -0,0 +1,3 @@ +DELETE FROM `spell_proc_event` WHERE `entry` = 54832; +INSERT INTO spell_proc_event VALUES +( 54832, 0x00, 7, 0x00000000, 0x00001000, 0x00000000, 0x00004000, 0x00000000, 0, 0, 0); -- Glyph of Innervate diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index d55395bce52..567741cfad9 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -5799,6 +5799,18 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger { switch(dummySpell->Id) { + // Glyph of Innervate + case 54832: + { + if (procSpell->SpellIconID != 62) + return false; + + int32 mana_perc = triggeredByAura->GetSpellProto()->EffectBasePoints[triggeredByAura->GetEffIndex()]+1; + basepoints0 = uint32((GetPower(POWER_MANA) * mana_perc / 100) / 10); + triggered_spell_id = 54833; + target = this; + break; + } // Glyph of Starfire case 54845: { |