diff options
| author | DrTenma <dr.tenma@yahoo.com> | 2011-01-30 19:14:18 +0100 | 
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2011-01-30 19:14:18 +0100 | 
| commit | 59448fddc4daa12d1ac40a517ec29765c612e6a3 (patch) | |
| tree | f412ddb9dffa14eeab298116b03ecc20d7789434 | |
| parent | d1fe53417a89cbb33a1e95b2173154bcfd06716c (diff) | |
Core/Spells: Fixed Judgements of the Just
Signed-off-by: Shauren <shauren.trinity@gmail.com>
| -rw-r--r-- | sql/base/world_database.sql | 2 | ||||
| -rw-r--r-- | sql/updates/2011_01_30_0_world_spell_proc_event.sql | 4 | ||||
| -rwxr-xr-x | src/server/game/Entities/Unit/Unit.cpp | 10 | 
3 files changed, 16 insertions, 0 deletions
| diff --git a/sql/base/world_database.sql b/sql/base/world_database.sql index 9a5dee34ff1..f6ff8c6953b 100644 --- a/sql/base/world_database.sql +++ b/sql/base/world_database.sql @@ -19080,6 +19080,8 @@ INSERT INTO `spell_proc_event` (`entry`,`SchoolMask`,`SpellFamilyName`,`SpellFam  ( 53671, 0x00,  10, 0x00800000, 0x00000000, 0x00000000, 0x00000000, 0x00040000,   0,   0,   0), -- Judgements of the Pure (Rank 1)  ( 53672, 0x00,  10, 0x00200000, 0x00010000, 0x00000000, 0x00000000, 0x00000002,   0,   0,   0), -- Infusion of Light  ( 53673, 0x00,  10, 0x00800000, 0x00000000, 0x00000000, 0x00000000, 0x00040000,   0,   0,   0), -- Judgements of the Pure (Rank 2) +( 53695, 0x00,  10, 0x00800000, 0x00000000, 0x00000008, 0x00000000, 0x00000000,   0,   0,   0), -- Judgements of the Just (Rank 1) +( 53696, 0x00,  10, 0x00800000, 0x00000000, 0x00000008, 0x00000000, 0x00000000,   0,   0,   0), -- Judgements of the Just (Rank 2)  ( 53709, 0x02,  10, 0x00004000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,   0,   0,   0), -- Shield of the templar  ( 53710, 0x02,  10, 0x00004000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,   0,   0,   0), -- Shield of the templar  ( 53711, 0x02,  10, 0x00004000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,   0,   0,   0), -- Shield of the templar diff --git a/sql/updates/2011_01_30_0_world_spell_proc_event.sql b/sql/updates/2011_01_30_0_world_spell_proc_event.sql new file mode 100644 index 00000000000..ba205cd48ef --- /dev/null +++ b/sql/updates/2011_01_30_0_world_spell_proc_event.sql @@ -0,0 +1,4 @@ +DELETE FROM `spell_proc_event` WHERE `entry` IN (53695,53696); +INSERT INTO `spell_proc_event` (`entry`,`SchoolMask`,`SpellFamilyName`,`SpellFamilyMask0`,`SpellFamilyMask1`,`SpellFamilyMask2`,`procFlags`,`procEx`,`ppmRate`,`CustomChance`,`Cooldown`) VALUES +(53695,0x00,10,0x00800000,0x00000000,0x00000008,0x00000000,0x00000000,0,0,0), -- Judgements of the Just (Rank 1) +(53696,0x00,10,0x00800000,0x00000000,0x00000008,0x00000000,0x00000000,0,0,0); -- Judgements of the Just (Rank 2) diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index b1fab1b9563..08aa2325749 100755 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -7716,6 +7716,16 @@ bool Unit::HandleAuraProc(Unit * pVictim, uint32 damage, Aura * triggeredByAura,                      *handled = true;                  break;              } +            // Judgements of the Just +            else if (dummySpell->SpellIconID == 3015) +            { +                *handled = true; +                if (procSpell->Category == SPELLCATEGORY_JUDGEMENT) +                { +                    CastSpell(pVictim, 68055, true); +                    return true; +                } +            }              break;          }          case SPELLFAMILY_MAGE: | 
