* 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:
@@ -2007,7 +2007,6 @@ void Spell::SelectEffectTargets(uint32 i, uint32 cur)
|
|||||||
Position pos;
|
Position pos;
|
||||||
m_caster->GetNearPosition(pos, dist, angle);
|
m_caster->GetNearPosition(pos, dist, angle);
|
||||||
m_targets.setDst(&pos); // also flag
|
m_targets.setDst(&pos); // also flag
|
||||||
AddUnitTarget(m_caster, i);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2073,10 +2073,12 @@ void Spell::EffectDummy(uint32 i)
|
|||||||
// Death Grip
|
// Death Grip
|
||||||
if (m_spellInfo->Id == 49560)
|
if (m_spellInfo->Id == 49560)
|
||||||
{
|
{
|
||||||
|
Position pos;
|
||||||
|
GetSummonPosition(i, pos);
|
||||||
if (Unit *unit = unitTarget->GetVehicleBase()) // what is this for?
|
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
|
else
|
||||||
unitTarget->CastSpell(m_caster, damage, true);
|
unitTarget->CastSpell(pos.GetPositionX(),pos.GetPositionY(),pos.GetPositionZ(),damage,true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (m_spellInfo->Id == 46584) // Raise dead
|
else if (m_spellInfo->Id == 46584) // Raise dead
|
||||||
|
|||||||
Reference in New Issue
Block a user