diff options
| author | Vincent-Michael <Vincent_Michael@gmx.de> | 2014-07-19 02:43:15 +0200 |
|---|---|---|
| committer | Vincent-Michael <Vincent_Michael@gmx.de> | 2014-07-19 02:43:15 +0200 |
| commit | 9a2d86f6ae1c5725bd3ffef6ccdf1116b614d106 (patch) | |
| tree | bf22dad7cb603b7efde4212c7158cc7b482373bc | |
| parent | 1866d8cc06e2b8c2722ccf69ee3f52ceda93bc27 (diff) | |
Core/Spells: Fix Quest "The Emissary"
| -rw-r--r-- | sql/updates/world/2014_07_19_00_world_spell_custom_attr.sql | 3 | ||||
| -rw-r--r-- | src/server/scripts/Spells/spell_item.cpp | 9 |
2 files changed, 9 insertions, 3 deletions
diff --git a/sql/updates/world/2014_07_19_00_world_spell_custom_attr.sql b/sql/updates/world/2014_07_19_00_world_spell_custom_attr.sql new file mode 100644 index 00000000000..181742b2497 --- /dev/null +++ b/sql/updates/world/2014_07_19_00_world_spell_custom_attr.sql @@ -0,0 +1,3 @@ +DELETE FROM `spell_custom_attr` WHERE `entry`=49882 +INSERT INTO `spell_custom_attr` (`entry`, `attributes`) VALUES +(49882, 32768); diff --git a/src/server/scripts/Spells/spell_item.cpp b/src/server/scripts/Spells/spell_item.cpp index e61021fd914..87c323aa22f 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 |
