aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/FULL/world_spell_full.sql4
-rw-r--r--sql/updates/5126_world_spell_proc_event.sql4
-rw-r--r--src/game/Unit.cpp10
3 files changed, 17 insertions, 1 deletions
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)
{