diff options
| author | Unholychick <lucas__jensen@hotmail.com> | 2014-12-28 20:07:00 +0100 |
|---|---|---|
| committer | Unholychick <lucas__jensen@hotmail.com> | 2014-12-28 20:07:00 +0100 |
| commit | 77887ab32ff4d703dbc618b5cab364f02582c5e7 (patch) | |
| tree | a13942a262fd4fac45d8ac916b64f8f272160649 /src | |
| parent | f2444eedf92fce39f7685eafead61d88d4ad89ef (diff) | |
Scripts/Spells: Move death grip from DB
Moves death grip from DB to spellscript for clarity and to reduce confusion in future.
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/scripts/Spells/spell_dk.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_dk.cpp b/src/server/scripts/Spells/spell_dk.cpp index 3cad6399ef8..acf39906ae7 100644 --- a/src/server/scripts/Spells/spell_dk.cpp +++ b/src/server/scripts/Spells/spell_dk.cpp @@ -39,6 +39,7 @@ enum DeathKnightSpells SPELL_DK_DEATH_AND_DECAY_DAMAGE = 52212, SPELL_DK_DEATH_COIL_DAMAGE = 47632, SPELL_DK_DEATH_COIL_HEAL = 47633, + SPELL_DK_DEATH_GRIP = 49560, SPELL_DK_DEATH_STRIKE_HEAL = 45470, SPELL_DK_FROST_FEVER = 55095, SPELL_DK_FROST_PRESENCE = 48263, @@ -1670,9 +1671,15 @@ public: return SPELL_CAST_OK; } + void HandleDummy(SpellEffIndex /*effIndex*/) + { + GetCaster()->CastSpell(GetHitUnit(), SPELL_DK_DEATH_GRIP, true); + } + void Register() override { OnCheckCast += SpellCheckCastFn(spell_dk_death_grip_initial_SpellScript::CheckCast); + OnEffectHitTarget += SpellEffectFn(spell_dk_death_grip_initial_SpellScript::HandleDummy, EFFECT_0, SPELL_EFFECT_DUMMY); } }; |
