aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellEffects.cpp5
1 files changed, 4 insertions, 1 deletions
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