diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Spell.cpp | 1 | ||||
-rw-r--r-- | src/game/SpellEffects.cpp | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index c4ca6756c16..05c8b2a4d6f 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -2007,7 +2007,6 @@ void Spell::SelectEffectTargets(uint32 i, uint32 cur) Position pos; m_caster->GetNearPosition(pos, dist, angle); m_targets.setDst(&pos); // also flag - AddUnitTarget(m_caster, i); break; } 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 |