mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-27 04:12:40 +01:00
Core/Spells: fixed some targeting cases for trigger missiles
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user