Merge pull request #10887 from zorix/PR3
Core/Spell: Triggered spells now will be cast on the primal target instead of on caster Closes #10853 Closes #10860
This commit is contained in:
commit
4a4da95aa0
2 files changed
+5
-1
No files matched your search
@@ -866,7 +866,10 @@ void Spell::EffectTriggerSpell(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