From 279ea9c98c3c19c10ac55c822bf7e971e4365374 Mon Sep 17 00:00:00 2001 From: click Date: Sun, 11 Apr 2010 15:30:39 +0200 Subject: * Fix: Deathknights 'Death Grip' Fixes issue #148 Fixes issue #1223 Patch by tbaart (partial commit - Dancing Rune Weapon still needs testing) --HG-- branch : trunk --- src/game/Spell.cpp | 1 - src/game/SpellEffects.cpp | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src') 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 -- cgit v1.2.3