From f5cbcb40cf4f0be5b6d7b40e30cf7970781939a6 Mon Sep 17 00:00:00 2001 From: Muhaha Date: Thu, 25 Jun 2009 23:55:43 +0200 Subject: Fix - Death Grip Spell [Have to Grip the Vehicle instead Passenger] --HG-- branch : trunk --- src/game/SpellEffects.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/game/SpellEffects.cpp') diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 7b3ca12c61e..3a4fdd7c993 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -1914,7 +1914,10 @@ void Spell::EffectDummy(uint32 i) // Death Grip if(m_spellInfo->Id == 49560) { - unitTarget->CastSpell(m_caster, damage, true); + if (unitTarget->m_Vehicle) + unitTarget->m_Vehicle->CastSpell(m_caster, damage, true); + else + unitTarget->CastSpell(m_caster, damage, true); return; } else if(m_spellInfo->Id == 46584) // Raise dead -- cgit v1.2.3