From 02610828c1e41739fbb757ca2c07c8a3a8639a6f Mon Sep 17 00:00:00 2001 From: Allofich Date: Thu, 8 Sep 2016 02:05:24 +0900 Subject: [PATCH] Don't play area vfx for non-area spells on actors. --- apps/openmw/mwworld/worldimp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwworld/worldimp.cpp b/apps/openmw/mwworld/worldimp.cpp index 152a2f5b4..82f99b7ea 100644 --- a/apps/openmw/mwworld/worldimp.cpp +++ b/apps/openmw/mwworld/worldimp.cpp @@ -3162,8 +3162,8 @@ namespace MWWorld { const ESM::MagicEffect* effect = getStore().get().find(effectIt->mEffectID); - if (effectIt->mRange != rangeType) - continue; // Not right range type + if ((effectIt->mArea <= 0 && !ignore.isEmpty() && ignore.getClass().isActor()) || effectIt->mRange != rangeType) + continue; // Not right range type, or not area effect and hit an actor // Spawn the explosion orb effect const ESM::Static* areaStatic;