Merge pull request #6040 from w1sht0l1v3/borean_tundra

Core/DB: Quest The Emissary
This commit is contained in:
kandera
2012-05-24 07:31:10 -07:00
2 changed files with 6 additions and 1 deletions

View File

@@ -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,'');

View File

@@ -1535,7 +1535,7 @@ class spell_item_impale_leviroth : public SpellScriptLoader
void HandleDummy(SpellEffIndex /* effIndex */)
{
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);
}