From 19ebe75d4102bb27a39edf196b1245635839c239 Mon Sep 17 00:00:00 2001 From: Nevan Date: Mon, 17 Aug 2009 03:28:52 +0200 Subject: [PATCH 1/2] *Fix Frozen Power Talent --HG-- branch : trunk --- sql/FULL/world_spell_full.sql | 4 +++- sql/updates/5126_world_spell_proc_event.sql | 4 ++++ src/game/Unit.cpp | 10 ++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 sql/updates/5126_world_spell_proc_event.sql diff --git a/sql/FULL/world_spell_full.sql b/sql/FULL/world_spell_full.sql index 51497eafea9..8dbde223b50 100644 --- a/sql/FULL/world_spell_full.sql +++ b/sql/FULL/world_spell_full.sql @@ -1526,7 +1526,9 @@ INSERT INTO `spell_proc_event` (`entry`, `SchoolMask`, `SpellFamilyName`, `Spell ( 61434, 0x00, 15, 0x00400000, 0x00010000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0), -- Blood of the north ( 49467, 0x00, 15, 0x00000010, 0x00020000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0), -- Death Rune Mastery ( 50033, 0x00, 15, 0x00000010, 0x00020000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0), -- Death Rune Mastery -( 50034, 0x00, 15, 0x00000010, 0x00020000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0); -- Death Rune Mastery +( 50034, 0x00, 15, 0x00000010, 0x00020000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0), -- Death Rune Mastery +( 63373, 0x00, 11, 0x80000000, 0x00000000, 0x00000000, 0x00010000, 0x00000000, 0, 0, 0), -- Frozen Power (Rank 1) +( 63374, 0x00, 11, 0x80000000, 0x00000000, 0x00000000, 0x00010000, 0x00000000, 0, 0, 0); -- Frozen Power (Rank 2) -- -------- -- ENCHANT PROC diff --git a/sql/updates/5126_world_spell_proc_event.sql b/sql/updates/5126_world_spell_proc_event.sql new file mode 100644 index 00000000000..68d5628edab --- /dev/null +++ b/sql/updates/5126_world_spell_proc_event.sql @@ -0,0 +1,4 @@ +DELETE FROM `spell_proc_event` WHERE `entry`IN(63373); +INSERT INTO `spell_proc_event` (`entry`,`SpellFamilyName`,`SpellFamilyMask0`,`procFlags`) VALUES +(63373,11,0x80000000,0x00010000), -- Frozen Power (Rank 1) +(63374,11,0x80000000,0x00010000); -- Freeze Power (Rank 2) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 80ee7bd359b..b0c20983efd 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -6465,6 +6465,16 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger break; } } + // Frozen Power + if (dummySpell->SpellIconID == 3780) + { + float chance = triggerAmount; + if (!roll_chance_f(chance)) + return false; + + triggered_spell_id = 63685; + break; + } // Storm, Earth and Fire if (dummySpell->SpellIconID == 3063) { From 94a8d65903bc04418045e8bef077e4b207d30461 Mon Sep 17 00:00:00 2001 From: Nevan Date: Mon, 17 Aug 2009 03:31:23 +0200 Subject: [PATCH 2/2] *Typo --HG-- branch : trunk --- sql/updates/5126_world_spell_proc_event.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/updates/5126_world_spell_proc_event.sql b/sql/updates/5126_world_spell_proc_event.sql index 68d5628edab..bf2b62b7dcd 100644 --- a/sql/updates/5126_world_spell_proc_event.sql +++ b/sql/updates/5126_world_spell_proc_event.sql @@ -1,4 +1,4 @@ -DELETE FROM `spell_proc_event` WHERE `entry`IN(63373); +DELETE FROM `spell_proc_event` WHERE `entry`IN(63373,63374); INSERT INTO `spell_proc_event` (`entry`,`SpellFamilyName`,`SpellFamilyMask0`,`procFlags`) VALUES (63373,11,0x80000000,0x00010000), -- Frozen Power (Rank 1) (63374,11,0x80000000,0x00010000); -- Freeze Power (Rank 2)