diff options
-rw-r--r-- | sql/updates/8372_spell_proc_event.sql | 3 | ||||
-rw-r--r-- | sql/world.sql | 1 | ||||
-rw-r--r-- | src/game/Unit.cpp | 6 |
3 files changed, 10 insertions, 0 deletions
diff --git a/sql/updates/8372_spell_proc_event.sql b/sql/updates/8372_spell_proc_event.sql new file mode 100644 index 00000000000..0f072328d27 --- /dev/null +++ b/sql/updates/8372_spell_proc_event.sql @@ -0,0 +1,3 @@ +DELETE FROM `spell_proc_event` WHERE `entry` IN (57870); +INSERT INTO `spell_proc_event` (`entry`,`SchoolMask`,`SpellFamilyName`,`SpellFamilyMask0`,`SpellFamilyMask1`,`SpellFamilyMask2`,`procFlags`,`procEx`,`ppmRate`,`CustomChance`,`Cooldown`) VALUES +( 57870, 0x00, 9, 0x00800000, 0x00000000, 0x00000000, 0x00040000, 0x00000000, 0, 0, 0); -- Glyph of Mend Pet diff --git a/sql/world.sql b/sql/world.sql index 9497ad3e5c2..0e98848c5ee 100644 --- a/sql/world.sql +++ b/sql/world.sql @@ -6977,6 +6977,7 @@ INSERT INTO `spell_proc_event` (`entry`,`SchoolMask`,`SpellFamilyName`,`SpellFam ( 56835, 0x00, 15, 0x00400000, 0x00010000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0), -- Reaping (Rank 3) ( 57345, 0x00, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 45), -- Darkmoon Card: Greatness ( 57352, 0x00, 0, 0x00000000, 0x00000000, 0x00000000, 0x00051154, 0x00000000, 0, 0, 45), -- Darkmoon Card: Death +( 57870, 0x00, 9, 0x00800000, 0x00000000, 0x00000000, 0x00040000, 0x00000000, 0, 0, 0), -- Glyph of Mend Pet ( 57878, 0x00, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000010, 0, 0, 0), -- Natural Reaction (Rank 1) ( 57880, 0x00, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000010, 0, 0, 0), -- Natural Reaction (Rank 2) ( 57881, 0x00, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000010, 0, 0, 0), -- Natural Reaction (Rank 3) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index e072a0458e7..be0ee41f576 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -6606,6 +6606,12 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger } break; } + // Glyph of Mend Pet + if(dummySpell->Id == 57870) + { + pVictim->CastSpell(pVictim, 57894, true, NULL, NULL, GetGUID()); + return true; + } break; } case SPELLFAMILY_PALADIN: |