diff options
| author | Shauren <shauren.trinity@gmail.com> | 2014-07-19 13:42:43 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2014-07-19 15:26:06 +0200 |
| commit | 2452cfb98ecdc18bd64a118410d2a6dc9505f0c4 (patch) | |
| tree | 0e39b635b9a8cb6418db21e79e9d9c5eb07fc6a6 /src/server/scripts | |
| parent | 3e56a4b8d7340ff75ecdd596516370076419ce2f (diff) | |
| parent | 99dd35da14e7cb0b79f7f70ad393abd6b7a22ea5 (diff) | |
Part 2: Merge branch 'master' of https://github.com/TrinityCore/TrinityCore into 4.3.4
Diffstat (limited to 'src/server/scripts')
| -rw-r--r-- | src/server/scripts/Spells/spell_item.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/server/scripts/Spells/spell_item.cpp b/src/server/scripts/Spells/spell_item.cpp index 003aa6b1bc1..c4bd473f1d1 100644 --- a/src/server/scripts/Spells/spell_item.cpp +++ b/src/server/scripts/Spells/spell_item.cpp @@ -2133,7 +2133,7 @@ class spell_item_complete_raptor_capture : public SpellScriptLoader enum ImpaleLeviroth { NPC_LEVIROTH = 26452, - SPELL_LEVIROTH_SELF_IMPALE = 49882, + SPELL_LEVIROTH_SELF_IMPALE = 49882 }; class spell_item_impale_leviroth : public SpellScriptLoader @@ -2152,11 +2152,14 @@ class spell_item_impale_leviroth : public SpellScriptLoader return true; } - void HandleDummy(SpellEffIndex /* effIndex */) + void HandleDummy(SpellEffIndex /*effIndex*/) { - if (Unit* target = GetHitCreature()) + if (Creature* target = GetHitCreature()) if (target->GetEntry() == NPC_LEVIROTH && !target->HealthBelowPct(95)) + { target->CastSpell(target, SPELL_LEVIROTH_SELF_IMPALE, true); + target->ResetPlayerDamageReq(); + } } void Register() override |
