Core/Spells: Fixed SPELL_EFFECT_TRIGGER_SPELL for spells that require DEST target but their triggering spell does not provide one, for example DH soul cleave damage component

Port From (https://github.com/TrinityCore/TrinityCore/commit/8bb7d90f21663308e29e29d79f8c933843e48064)
This commit is contained in:
hondacrx
2023-06-30 08:37:22 -04:00
parent 0b1d41cc7b
commit b1c6c14f0e
+1 -1
View File
@@ -266,7 +266,7 @@ namespace Game.Spells
if (spellInfo.NeedsToBeTriggeredByCaster(m_spellInfo) && effectInfo.GetProvidedTargetMask().HasAnyFlag(SpellCastTargetFlags.UnitMask))
return;
if (spellInfo.GetExplicitTargetMask().HasAnyFlag(SpellCastTargetFlags.DestLocation))
if (spellInfo.GetExplicitTargetMask().HasAnyFlag(SpellCastTargetFlags.DestLocation) && m_targets.HasDst())
targets.SetDst(m_targets);
Unit target = m_targets.GetUnitTarget();