aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellEffects.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r--src/game/SpellEffects.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index d3c471975d1..4543128e54f 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -2073,10 +2073,12 @@ void Spell::EffectDummy(uint32 i)
// Death Grip
if (m_spellInfo->Id == 49560)
{
+ Position pos;
+ GetSummonPosition(i, pos);
if (Unit *unit = unitTarget->GetVehicleBase()) // what is this for?
- unit->CastSpell(m_caster, damage, true);
+ unit->CastSpell(pos.GetPositionX(),pos.GetPositionY(),pos.GetPositionZ(),damage,true);
else
- unitTarget->CastSpell(m_caster, damage, true);
+ unitTarget->CastSpell(pos.GetPositionX(),pos.GetPositionY(),pos.GetPositionZ(),damage,true);
return;
}
else if (m_spellInfo->Id == 46584) // Raise dead