From cba199fa204635bf69e4c16fff3de01ce43510c3 Mon Sep 17 00:00:00 2001 From: John Holiver Date: Wed, 2 Jun 2010 18:30:57 -0300 Subject: * Fix Glyph of Mend Pet (tnx L1ghtGu4rd from Mangos) --HG-- branch : trunk --- sql/updates/8372_spell_proc_event.sql | 3 +++ sql/world.sql | 1 + src/game/Unit.cpp | 6 ++++++ 3 files changed, 10 insertions(+) create mode 100644 sql/updates/8372_spell_proc_event.sql 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: -- cgit v1.2.3