Core/Spells: fixed some targeting cases for trigger missiles

This commit is contained in:
Ovalord
2018-02-12 21:04:45 +01:00
parent 154d283d3a
commit 1f87277ff6

View File

@@ -756,7 +756,10 @@ void Spell::EffectTriggerMissileSpell(SpellEffIndex effIndex)
if (spellInfo->GetExplicitTargetMask() & TARGET_FLAG_DEST_LOCATION)
targets.SetDst(m_targets);
targets.SetUnitTarget(m_caster);
if (Unit* target = m_targets.GetUnitTarget())
targets.SetUnitTarget(target);
else
targets.SetUnitTarget(m_caster);
}
CustomSpellValues values;