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:
@@ -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,'');
|
||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user