diff options
| author | Anubisss <none@none> | 2010-05-14 18:02:31 +0200 |
|---|---|---|
| committer | Anubisss <none@none> | 2010-05-14 18:02:31 +0200 |
| commit | a7295810e3d2f35468ab4c222342ba7ae7e182f8 (patch) | |
| tree | a300296fc0d3597f729b8858edcc91a776a06c41 | |
| parent | 3c9fc9b9e366111acc306ea2669312807a1a3ae2 (diff) | |
Fix Glyph of Life Tap.
SpellMgr.cpp part of the code by Karolis.Rudzevicius, thanks for it.
Fixes issue #1440.
--HG--
branch : trunk
| -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: |
