Core/DB: Quest The Emissary.

Fix condition in item spell(usable only when npc is above 95% hp).
Added correct faction,unit_flags and emote to Leviroth.
This commit is contained in:
w1sht0l1v3
2012-04-22 13:58:22 +03:00
parent 409ebcca97
commit 8cf7d91857
2 changed files with 6 additions and 1 deletions
@@ -0,0 +1,5 @@
UPDATE `creature_template` SET `faction_A`=1914,`faction_H`=1914,`unit_flags`=33024 WHERE `entry`=26452;
DELETE FROM `creature_template_addon` WHERE `entry`=26452;
INSERT INTO `creature_template_addon` (`entry`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES
(26452,0,0,0,1,383,'');
+1 -1
View File
@@ -1535,7 +1535,7 @@ class spell_item_impale_leviroth : public SpellScriptLoader
void HandleDummy(SpellEffIndex /* effIndex */) void HandleDummy(SpellEffIndex /* effIndex */)
{ {
if (Unit* target = GetHitCreature()) if (Unit* target = GetHitCreature())
if (target->GetEntry() == NPC_LEVIROTH && target->HealthBelowPct(95)) if (target->GetEntry() == NPC_LEVIROTH && !target->HealthBelowPct(95))
target->CastSpell(target, SPELL_LEVIROTH_SELF_IMPALE, true); target->CastSpell(target, SPELL_LEVIROTH_SELF_IMPALE, true);
} }