diff options
-rw-r--r-- | sql/updates/8191_world_spell_proc_event.sql | 3 | ||||
-rw-r--r-- | src/game/SpellMgr.cpp | 2 | ||||
-rw-r--r-- | src/game/Unit.cpp | 12 |
3 files changed, 11 insertions, 6 deletions
diff --git a/sql/updates/8191_world_spell_proc_event.sql b/sql/updates/8191_world_spell_proc_event.sql new file mode 100644 index 00000000000..5b1fac4004d --- /dev/null +++ b/sql/updates/8191_world_spell_proc_event.sql @@ -0,0 +1,3 @@ +DELETE FROM spell_proc_event WHERE entry = 63320; +INSERT INTO spell_proc_event (entry, SpellFamilyName, SpellFamilyMask0, SpellFamilyMask1, SpellFamilyMask2, procFlags) VALUES +(63320, 5, 0x80040000, 0x00000000, 0x00008000, 0x00000400); -- Life Tap, Dark Pact diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index 6c7ae5c98f8..81c4ebaa76f 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -3601,6 +3601,8 @@ void SpellMgr::LoadSpellCustomAttr() case 20335: case 20336: case 20337: + // Glyph of Life Tap + case 63320: // Entries were not updated after spell effect change, we have to do that manually :/ spellInfo->AttributesEx3 |= SPELL_ATTR_EX3_CAN_PROC_TRIGGERED; count++; diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 1bb63a9212b..221e4f2b859 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -5638,6 +5638,12 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger pVictim->RemoveAurasWithMechanic(1<<MECHANIC_STUN, AURA_REMOVE_BY_ENEMY_SPELL); return true; } + // Glyph of Life Tap + case 63320: + { + triggered_spell_id = 63321; // Life Tap + break; + } } break; } @@ -5963,12 +5969,6 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger triggered_spell_id = 63311; break; } - // Glyph of Life Tap - case 63320: - { - triggered_spell_id = 63321; - break; - } // Nightfall case 18094: case 18095: |