Use CastSpell(x,y,z ... for EffectTriggerMissileSpell

Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
DiSlord 2009-01-12 21:21:00 +03:00
parent 6d17820af2
commit ae1f60c27f

View file

@ -1983,12 +1983,7 @@ void Spell::EffectTriggerMissileSpell(uint32 effect_idx)
if (m_CastItem)
DEBUG_LOG("WORLD: cast Item spellId - %i", spellInfo->Id);
Spell *spell = new Spell(m_caster, spellInfo, true, m_originalCasterGUID );
SpellCastTargets targets;
targets.setDestination(m_targets.m_destX,m_targets.m_destY,m_targets.m_destZ);
spell->m_CastItem = m_CastItem;
spell->prepare(&targets, NULL);
m_caster->CastSpell(m_targets.m_destX, m_targets.m_destY, m_targets.m_destZ, spellInfo, true, m_CastItem, 0, m_originalCasterGUID);
}
void Spell::EffectTeleportUnits(uint32 i)