Merge branch 'notarget' into 'master'

Don't run target-specific spell infliction code when there's no target (#7926)

Closes #7926

See merge request OpenMW/openmw!4019
pull/3235/head
psi29a 9 months ago
commit c6921d5292

@ -188,6 +188,9 @@ namespace MWMechanics
for (auto& enam : effects.mList)
{
if (target.isEmpty())
break;
if (enam.mData.mRange != range)
continue;
const ESM::MagicEffect* magicEffect = store.find(enam.mData.mEffectID);

Loading…
Cancel
Save