From 8df6879e94c255a9cfb3063f8e5437ee77874d3e Mon Sep 17 00:00:00 2001 From: click Date: Sat, 1 May 2010 08:30:46 +0200 Subject: Add support for quest 11626 (The Emissary) - patch by antihrists (thanks) Closes issue #1061 --HG-- branch : trunk --- src/game/SpellEffects.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/game/SpellEffects.cpp') diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 695eb48b34c..f2ad9cd8f7a 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -1260,6 +1260,14 @@ void Spell::EffectDummy(uint32 i) m_caster->CastSpell(m_caster, 45088, true); return; } + case 47170: // Impale Leviroth + { + if (!unitTarget && unitTarget->GetEntry() != 26452 && ((unitTarget->GetHealth() / unitTarget->GetMaxHealth()) * 100.0f) > 95.0f) + return; + + m_caster->DealDamage(unitTarget, unitTarget->GetMaxHealth()*0.93f); + return; + } case 49625: // Brave's Flare { //Trigger Brave's Flare Effect (with EffectTarget) -- cgit v1.2.3