From fd448f94918d560c919deebbf8bf4547804c38d8 Mon Sep 17 00:00:00 2001 From: Nevan Date: Sun, 23 Aug 2009 21:51:14 +0200 Subject: [PATCH] *Fix Glyph of Innervate --HG-- branch : trunk --- sql/FULL/world_spell_full.sql | 3 ++- sql/updates/5330_world_spell_proc_event.sql | 3 +++ src/game/Unit.cpp | 12 ++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 sql/updates/5330_world_spell_proc_event.sql diff --git a/sql/FULL/world_spell_full.sql b/sql/FULL/world_spell_full.sql index 926adab93f..27a833b40d 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 0000000000..ae05ed2ddd --- /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 d55395bce5..567741cfad 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: {