mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
Use CastSpell(x,y,z ... for EffectTriggerMissileSpell
Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
6d17820af2
commit
ae1f60c27f
1 changed files with 1 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue