diff options
| author | Machiavelli <none@none> | 2009-08-17 04:46:26 +0200 |
|---|---|---|
| committer | Machiavelli <none@none> | 2009-08-17 04:46:26 +0200 |
| commit | 445c8722fe3795b20b4cf2a5582635429c09fee3 (patch) | |
| tree | 34c1ab8133e890cd8030aa5a1362dea6c0d9d5d2 | |
| parent | b59f5546906fb99c1b19bca5acdcf11b0952f5b7 (diff) | |
| parent | 94a8d65903bc04418045e8bef077e4b207d30461 (diff) | |
*Merge
--HG--
branch : trunk
| -rw-r--r-- | sql/FULL/world_spell_full.sql | 4 | ||||
| -rw-r--r-- | sql/updates/5126_world_spell_proc_event.sql | 4 | ||||
| -rw-r--r-- | src/game/Unit.cpp | 10 |
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..bf2b62b7dcd --- /dev/null +++ b/sql/updates/5126_world_spell_proc_event.sql @@ -0,0 +1,4 @@ +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) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index d0a7e41abcb..e3350940692 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) { |
