aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMuhaha <none@none>2009-06-25 23:55:43 +0200
committerMuhaha <none@none>2009-06-25 23:55:43 +0200
commitf5cbcb40cf4f0be5b6d7b40e30cf7970781939a6 (patch)
treef7c851962e19dfc21a169f8068d20fa637a7a2c9 /src
parent1b12e2def78e3a92d5fa2775112a852a886c8ca5 (diff)
Fix - Death Grip Spell [Have to Grip the Vehicle instead Passenger]
--HG-- branch : trunk
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