aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorclick <none@none>2010-04-11 15:30:39 +0200
committerclick <none@none>2010-04-11 15:30:39 +0200
commit279ea9c98c3c19c10ac55c822bf7e971e4365374 (patch)
treecff1db25d89109e5b5a7ae03a9b98e4c5c5fc617 /src
parentd24571f4f79628387fecaa283e63cfa7ed661347 (diff)
* Fix: Deathknights 'Death Grip'
Fixes issue #148 Fixes issue #1223 Patch by tbaart (partial commit - Dancing Rune Weapon still needs testing) --HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Spell.cpp1
-rw-r--r--src/game/SpellEffects.cpp6
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