* Fix: Deathknights 'Death Grip'

Fixes issue #148
Fixes issue #1223
Patch by tbaart (partial commit - Dancing Rune Weapon still needs testing)

--HG--
branch : trunk
This commit is contained in:
click
2010-04-11 15:30:39 +02:00
parent d24571f4f7
commit 279ea9c98c
2 changed files with 4 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -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